diff --git a/docs/getting-started/concepts/feature-view.md b/docs/getting-started/concepts/feature-view.md index ee70d5024dd..5be9b287305 100644 --- a/docs/getting-started/concepts/feature-view.md +++ b/docs/getting-started/concepts/feature-view.md @@ -23,6 +23,8 @@ Feature views consist of: * a name to uniquely identify this feature view in the project. * (optional, but recommended) a schema specifying one or more [features](feature-view.md#field) (without this, Feast will infer the schema by reading from the data source) * (optional, but recommended) metadata (for example, description, or other free-form metadata via `tags`) +* (optional) `owner`: the email of the primary maintainer +* (optional) `org`: the organizational unit that owns the feature view (e.g. `"ads"`, `"search"`); useful for grouping feature views by team or product area * (optional) a TTL, which limits how far back Feast will look when generating historical datasets * (optional) `enable_validation=True`, which enables schema validation during materialization (see [Schema Validation](#schema-validation) below) @@ -270,7 +272,7 @@ def transformed_conv_rate(features_df: pd.DataFrame) -> pd.DataFrame: A stream feature view is an extension of a normal feature view. The primary difference is that stream feature views have both stream and batch data sources, whereas a normal feature view only has a batch data source. -Stream feature views should be used instead of normal feature views when there are stream data sources (e.g. Kafka and Kinesis) available to provide fresh features in an online setting. Here is an example definition of a stream feature view with an attached transformation: +Stream feature views should be used instead of normal feature views when there are stream data sources (e.g. Kafka and Kinesis) available to provide fresh features in an online setting. Like regular feature views, stream feature views support the optional `org` field for grouping by organizational unit. Here is an example definition of a stream feature view with an attached transformation: ```python from datetime import timedelta @@ -308,6 +310,7 @@ driver_stats_stream_source = KafkaSource( timestamp_field="event_timestamp", online=True, source=driver_stats_stream_source, + org="ads", # optional ) def driver_hourly_stats_stream(df: DataFrame): from pyspark.sql.functions import col diff --git a/protos/feast/core/FeatureView.proto b/protos/feast/core/FeatureView.proto index 19ffe562dc8..90207928ed0 100644 --- a/protos/feast/core/FeatureView.proto +++ b/protos/feast/core/FeatureView.proto @@ -36,7 +36,7 @@ message FeatureView { FeatureViewMeta meta = 2; } -// Next available id: 19 +// Next available id: 20 // TODO(adchia): refactor common fields from this and ODFV into separate metadata proto message FeatureViewSpec { // Name of the feature view. Must be unique. Not updated. @@ -97,6 +97,9 @@ message FeatureViewSpec { // User-specified version pin (e.g. "latest", "v2", "version2") string version = 18; + + // Organizational unit that owns this feature view (e.g. "ads", "search"). + string org = 19; } message FeatureViewMeta { diff --git a/protos/feast/core/OnDemandFeatureView.proto b/protos/feast/core/OnDemandFeatureView.proto index d518f22c6cd..87c6a0eabfb 100644 --- a/protos/feast/core/OnDemandFeatureView.proto +++ b/protos/feast/core/OnDemandFeatureView.proto @@ -36,7 +36,7 @@ message OnDemandFeatureView { OnDemandFeatureViewMeta meta = 2; } -// Next available id: 18 +// Next available id: 19 message OnDemandFeatureViewSpec { // Name of the feature view. Must be unique. Not updated. string name = 1; @@ -77,6 +77,9 @@ message OnDemandFeatureViewSpec { // User-specified version pin (e.g. "latest", "v2", "version2") string version = 17; + + // Organizational unit that owns this feature view (e.g. "ads", "search"). + string org = 18; } message OnDemandFeatureViewMeta { diff --git a/protos/feast/core/StreamFeatureView.proto b/protos/feast/core/StreamFeatureView.proto index 05c829b70d3..4aff7cc37e7 100644 --- a/protos/feast/core/StreamFeatureView.proto +++ b/protos/feast/core/StreamFeatureView.proto @@ -37,7 +37,7 @@ message StreamFeatureView { FeatureViewMeta meta = 2; } -// Next available id: 22 +// Next available id: 23 message StreamFeatureViewSpec { // Name of the feature view. Must be unique. Not updated. string name = 1; @@ -105,5 +105,8 @@ message StreamFeatureViewSpec { // User-specified version pin (e.g. "latest", "v2", "version2") string version = 21; + + // Organizational unit that owns this stream feature view (e.g. "ads", "search"). + string org = 22; } diff --git a/sdk/python/feast/batch_feature_view.py b/sdk/python/feast/batch_feature_view.py index c9c53dfef91..95385da1d91 100644 --- a/sdk/python/feast/batch_feature_view.py +++ b/sdk/python/feast/batch_feature_view.py @@ -93,6 +93,7 @@ def __init__( offline: bool = False, description: str = "", owner: str = "", + org: str = "", schema: Optional[List[Field]] = None, udf: Optional[Callable[[Any], Any]] = None, udf_string: Optional[str] = "", @@ -151,6 +152,7 @@ def __init__( offline=offline, description=description, owner=owner, + org=org, schema=schema, source=source, # type: ignore[arg-type] sink_source=sink_source, @@ -189,6 +191,7 @@ def batch_feature_view( offline: bool = True, description: str = "", owner: str = "", + org: str = "", schema: Optional[List[Field]] = None, enable_validation: bool = False, version: str = "latest", @@ -219,6 +222,7 @@ def decorator(user_function): offline=offline, description=description, owner=owner, + org=org, schema=schema, udf=user_function, udf_string=udf_string, diff --git a/sdk/python/feast/feature_view.py b/sdk/python/feast/feature_view.py index 68d4e96212e..da11a7958ca 100644 --- a/sdk/python/feast/feature_view.py +++ b/sdk/python/feast/feature_view.py @@ -89,6 +89,8 @@ class FeatureView(BaseFeatureView): tags: A dictionary of key-value pairs to store arbitrary metadata. owner: The owner of the feature view, typically the email of the primary maintainer. + org: The organizational unit that owns this feature view (e.g. "ads", "search"). + Defaults to empty string. mode: The transformation mode for feature transformations. Only meaningful when transformations are applied. Choose from TransformationMode enum values (e.g., PYTHON, PANDAS, RAY, SQL, SPARK, SUBSTRAIT). @@ -107,6 +109,7 @@ class FeatureView(BaseFeatureView): description: str tags: Dict[str, str] owner: str + org: str materialization_intervals: List[Tuple[datetime, datetime]] mode: Optional[Union["TransformationMode", str]] enable_validation: bool @@ -125,6 +128,7 @@ def __init__( description: str = "", tags: Optional[Dict[str, str]] = None, owner: str = "", + org: str = "", mode: Optional[Union["TransformationMode", str]] = None, enable_validation: bool = False, version: str = "latest", @@ -152,6 +156,8 @@ def __init__( tags (optional): A dictionary of key-value pairs to store arbitrary metadata. owner (optional): The owner of the feature view, typically the email of the primary maintainer. + org (optional): The organizational unit that owns this feature view + (e.g. "ads", "search"). mode (optional): The transformation mode for feature transformations. Only meaningful when transformations are applied. Choose from TransformationMode enum values. enable_validation (optional): If True, enables schema validation during materialization @@ -278,6 +284,7 @@ def __init__( owner=owner, source=self.batch_source, ) + self.org = org self.online = online self.offline = offline self.mode = mode @@ -302,6 +309,7 @@ def __copy__(self): version=self.version, description=self.description, owner=self.owner, + org=self.org, ) # This is deliberately set outside of the FV initialization as we do not have the Entity objects. @@ -355,6 +363,7 @@ def __eq__(self, other): or self.enable_validation != other.enable_validation or normalize_version_string(self.version) != normalize_version_string(other.version) + or self.org != other.org ): return False @@ -485,6 +494,7 @@ def to_proto_spec( description=self.description, tags=self.tags, owner=self.owner, + org=self.org, ttl=(ttl_duration if ttl_duration is not None else None), online=self.online, offline=self.offline, @@ -615,6 +625,7 @@ def _from_proto_internal( description=feature_view_proto.spec.description, tags=dict(feature_view_proto.spec.tags), owner=feature_view_proto.spec.owner, + org=feature_view_proto.spec.org, online=feature_view_proto.spec.online, offline=feature_view_proto.spec.offline, ttl=( @@ -637,6 +648,7 @@ def _from_proto_internal( description=feature_view_proto.spec.description, tags=dict(feature_view_proto.spec.tags), owner=feature_view_proto.spec.owner, + org=feature_view_proto.spec.org, online=feature_view_proto.spec.online, offline=feature_view_proto.spec.offline, ttl=( diff --git a/sdk/python/feast/on_demand_feature_view.py b/sdk/python/feast/on_demand_feature_view.py index 57c51fccd8a..dbd7738f21d 100644 --- a/sdk/python/feast/on_demand_feature_view.py +++ b/sdk/python/feast/on_demand_feature_view.py @@ -131,6 +131,8 @@ class OnDemandFeatureView(BaseFeatureView): tags: A dictionary of key-value pairs to store arbitrary metadata. owner: The owner of the on demand feature view, typically the email of the primary maintainer. + org: The organizational unit that owns this on demand feature view (e.g. "ads", + "search"). Defaults to empty string. """ _TRACK_METRICS_TAG = "feast:track_metrics" @@ -146,6 +148,7 @@ class OnDemandFeatureView(BaseFeatureView): description: str tags: dict[str, str] owner: str + org: str write_to_online_store: bool singleton: bool track_metrics: bool @@ -168,6 +171,7 @@ def __init__( # noqa: C901 description: str = "", tags: Optional[dict[str, str]] = None, owner: str = "", + org: str = "", write_to_online_store: bool = False, singleton: bool = False, track_metrics: bool = False, @@ -199,6 +203,8 @@ def __init__( # noqa: C901 tags (optional): A dictionary of key-value pairs to store arbitrary metadata. owner (optional): The owner of the on demand feature view, typically the email of the primary maintainer. + org (optional): The organizational unit that owns this feature view + (e.g. "ads", "search"). write_to_online_store (optional): A boolean that indicates whether to write the on demand feature view to the online store for faster retrieval. singleton (optional): A boolean that indicates whether the transformation is executed on a singleton @@ -218,6 +224,7 @@ def __init__( # noqa: C901 owner=owner, ) + self.org = org self.version = version schema = schema or [] self.entities = [e.name for e in entities] if entities else [DUMMY_ENTITY_NAME] @@ -384,6 +391,7 @@ def __copy__(self): description=self.description, tags=self.tags, owner=self.owner, + org=self.org, write_to_online_store=self.write_to_online_store, singleton=self.singleton, version=self.version, @@ -463,6 +471,7 @@ def __eq__(self, other): or self.aggregations != other.aggregations or normalize_version_string(self.version) != normalize_version_string(other.version) + or self.org != other.org ): return False @@ -621,6 +630,7 @@ def to_proto(self) -> OnDemandFeatureViewProto: description=self.description, tags=tags, owner=self.owner, + org=self.org, write_to_online_store=self.write_to_online_store, singleton=self.singleton or False, aggregations=[agg.to_proto() for agg in self.aggregations], @@ -689,6 +699,7 @@ def from_proto( description=on_demand_feature_view_proto.spec.description, tags=proto_tags, owner=on_demand_feature_view_proto.spec.owner, + org=on_demand_feature_view_proto.spec.org, write_to_online_store=optional_fields["write_to_online_store"], singleton=optional_fields["singleton"], track_metrics=track_metrics, @@ -1336,6 +1347,7 @@ def on_demand_feature_view( description: str = "", tags: Optional[dict[str, str]] = None, owner: str = "", + org: str = "", write_to_online_store: bool = False, singleton: bool = False, track_metrics: bool = False, @@ -1362,6 +1374,8 @@ def on_demand_feature_view( tags (optional): A dictionary of key-value pairs to store arbitrary metadata. owner (optional): The owner of the on demand feature view, typically the email of the primary maintainer. + org (optional): The organizational unit that owns this on demand feature view + (e.g. "ads", "search"). Defaults to empty string. write_to_online_store (optional): A boolean that indicates whether to write the on demand feature view to the online store for faster retrieval. singleton (optional): A boolean that indicates whether the transformation is executed on a singleton @@ -1390,6 +1404,7 @@ def decorator(user_function): description=description, tags=tags, owner=owner, + org=org, write_to_online_store=write_to_online_store, entities=entities, singleton=singleton, diff --git a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi index 4c6bd7c089c..4b5c1cac9a9 100644 --- a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi @@ -2,44 +2,49 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Aggregation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Aggregation(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - COLUMN_FIELD_NUMBER: builtins.int - FUNCTION_FIELD_NUMBER: builtins.int - TIME_WINDOW_FIELD_NUMBER: builtins.int - SLIDE_INTERVAL_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - column: builtins.str - function: builtins.str - @property - def time_window(self) -> google.protobuf.duration_pb2.Duration: ... - @property - def slide_interval(self) -> google.protobuf.duration_pb2.Duration: ... - name: builtins.str + COLUMN_FIELD_NUMBER: _builtins.int + FUNCTION_FIELD_NUMBER: _builtins.int + TIME_WINDOW_FIELD_NUMBER: _builtins.int + SLIDE_INTERVAL_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + column: _builtins.str + function: _builtins.str + name: _builtins.str + @_builtins.property + def time_window(self) -> _duration_pb2.Duration: ... + @_builtins.property + def slide_interval(self) -> _duration_pb2.Duration: ... def __init__( self, *, - column: builtins.str = ..., - function: builtins.str = ..., - time_window: google.protobuf.duration_pb2.Duration | None = ..., - slide_interval: google.protobuf.duration_pb2.Duration | None = ..., - name: builtins.str = ..., + column: _builtins.str = ..., + function: _builtins.str = ..., + time_window: _duration_pb2.Duration | None = ..., + slide_interval: _duration_pb2.Duration | None = ..., + name: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["column", b"column", "function", b"function", "name", b"name", "slide_interval", b"slide_interval", "time_window", b"time_window"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["column", b"column", "function", b"function", "name", b"name", "slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Aggregation = Aggregation +Global___Aggregation: _TypeAlias = Aggregation # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi index 193fb82a776..fa5291fac26 100644 --- a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi @@ -16,272 +16,318 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FileFormat(google.protobuf.message.Message): +@_typing.final +class FileFormat(_message.Message): """Defines the file format encoding the features/entity data in files""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class ParquetFormat(google.protobuf.message.Message): + @_typing.final + class ParquetFormat(_message.Message): """Defines options for the Parquet data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - PARQUET_FORMAT_FIELD_NUMBER: builtins.int - DELTA_FORMAT_FIELD_NUMBER: builtins.int - @property - def parquet_format(self) -> global___FileFormat.ParquetFormat: ... - @property - def delta_format(self) -> global___TableFormat.DeltaFormat: + PARQUET_FORMAT_FIELD_NUMBER: _builtins.int + DELTA_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def parquet_format(self) -> Global___FileFormat.ParquetFormat: ... + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def delta_format(self) -> Global___TableFormat.DeltaFormat: """Deprecated: Delta Lake is a table format, not a file format. Use TableFormat.DeltaFormat instead for Delta Lake support. """ + def __init__( self, *, - parquet_format: global___FileFormat.ParquetFormat | None = ..., - delta_format: global___TableFormat.DeltaFormat | None = ..., + parquet_format: Global___FileFormat.ParquetFormat | None = ..., + delta_format: Global___TableFormat.DeltaFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["parquet_format", "delta_format"] | None: ... - -global___FileFormat = FileFormat - -class TableFormat(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class IcebergFormat(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["parquet_format", "delta_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___FileFormat: _TypeAlias = FileFormat # noqa: Y015 + +@_typing.final +class TableFormat(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class IcebergFormat(_message.Message): """Defines options for Apache Iceberg table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - CATALOG_FIELD_NUMBER: builtins.int - NAMESPACE_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - catalog: builtins.str + CATALOG_FIELD_NUMBER: _builtins.int + NAMESPACE_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + catalog: _builtins.str """Optional catalog name for the Iceberg table""" - namespace: builtins.str + namespace: _builtins.str """Optional namespace (schema/database) within the catalog""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Iceberg configuration Examples: warehouse location, snapshot-id, as-of-timestamp, etc. """ + def __init__( self, *, - catalog: builtins.str = ..., - namespace: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + catalog: _builtins.str = ..., + namespace: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class DeltaFormat(google.protobuf.message.Message): + @_typing.final + class DeltaFormat(_message.Message): """Defines options for Delta Lake table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - CHECKPOINT_LOCATION_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - checkpoint_location: builtins.str + CHECKPOINT_LOCATION_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + checkpoint_location: _builtins.str """Optional checkpoint location for Delta transaction logs""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Delta configuration Examples: auto-optimize settings, vacuum settings, etc. """ + def __init__( self, *, - checkpoint_location: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + checkpoint_location: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class HudiFormat(google.protobuf.message.Message): + @_typing.final + class HudiFormat(_message.Message): """Defines options for Apache Hudi table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - TABLE_TYPE_FIELD_NUMBER: builtins.int - RECORD_KEY_FIELD_NUMBER: builtins.int - PRECOMBINE_FIELD_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - table_type: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + TABLE_TYPE_FIELD_NUMBER: _builtins.int + RECORD_KEY_FIELD_NUMBER: _builtins.int + PRECOMBINE_FIELD_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + table_type: _builtins.str """Type of Hudi table (COPY_ON_WRITE or MERGE_ON_READ)""" - record_key: builtins.str + record_key: _builtins.str """Field(s) that uniquely identify a record""" - precombine_field: builtins.str + precombine_field: _builtins.str """Field used to determine the latest version of a record""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Hudi configuration Examples: compaction strategy, indexing options, etc. """ + def __init__( self, *, - table_type: builtins.str = ..., - record_key: builtins.str = ..., - precombine_field: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + table_type: _builtins.str = ..., + record_key: _builtins.str = ..., + precombine_field: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"]) -> None: ... - - ICEBERG_FORMAT_FIELD_NUMBER: builtins.int - DELTA_FORMAT_FIELD_NUMBER: builtins.int - HUDI_FORMAT_FIELD_NUMBER: builtins.int - @property - def iceberg_format(self) -> global___TableFormat.IcebergFormat: ... - @property - def delta_format(self) -> global___TableFormat.DeltaFormat: ... - @property - def hudi_format(self) -> global___TableFormat.HudiFormat: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ICEBERG_FORMAT_FIELD_NUMBER: _builtins.int + DELTA_FORMAT_FIELD_NUMBER: _builtins.int + HUDI_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def iceberg_format(self) -> Global___TableFormat.IcebergFormat: ... + @_builtins.property + def delta_format(self) -> Global___TableFormat.DeltaFormat: ... + @_builtins.property + def hudi_format(self) -> Global___TableFormat.HudiFormat: ... def __init__( self, *, - iceberg_format: global___TableFormat.IcebergFormat | None = ..., - delta_format: global___TableFormat.DeltaFormat | None = ..., - hudi_format: global___TableFormat.HudiFormat | None = ..., + iceberg_format: Global___TableFormat.IcebergFormat | None = ..., + delta_format: Global___TableFormat.DeltaFormat | None = ..., + hudi_format: Global___TableFormat.HudiFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["iceberg_format", "delta_format", "hudi_format"] | None: ... - -global___TableFormat = TableFormat - -class StreamFormat(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["iceberg_format", "delta_format", "hudi_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___TableFormat: _TypeAlias = TableFormat # noqa: Y015 + +@_typing.final +class StreamFormat(_message.Message): """Defines the data format encoding features/entity data in data streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class ProtoFormat(google.protobuf.message.Message): + @_typing.final + class ProtoFormat(_message.Message): """Defines options for the protobuf data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - CLASS_PATH_FIELD_NUMBER: builtins.int - class_path: builtins.str + CLASS_PATH_FIELD_NUMBER: _builtins.int + class_path: _builtins.str """Classpath to the generated Java Protobuf class that can be used to decode Feature data from the obtained stream message """ def __init__( self, *, - class_path: builtins.str = ..., + class_path: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["class_path", b"class_path"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["class_path", b"class_path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AvroFormat(google.protobuf.message.Message): + @_typing.final + class AvroFormat(_message.Message): """Defines options for the avro data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SCHEMA_JSON_FIELD_NUMBER: builtins.int - schema_json: builtins.str + SCHEMA_JSON_FIELD_NUMBER: _builtins.int + schema_json: _builtins.str """Optional if used in a File DataSource as schema is embedded in avro file. Specifies the schema of the Avro message as JSON string. """ def __init__( self, *, - schema_json: builtins.str = ..., + schema_json: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class JsonFormat(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class JsonFormat(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SCHEMA_JSON_FIELD_NUMBER: builtins.int - schema_json: builtins.str + SCHEMA_JSON_FIELD_NUMBER: _builtins.int + schema_json: _builtins.str def __init__( self, *, - schema_json: builtins.str = ..., + schema_json: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ... - - AVRO_FORMAT_FIELD_NUMBER: builtins.int - PROTO_FORMAT_FIELD_NUMBER: builtins.int - JSON_FORMAT_FIELD_NUMBER: builtins.int - @property - def avro_format(self) -> global___StreamFormat.AvroFormat: ... - @property - def proto_format(self) -> global___StreamFormat.ProtoFormat: ... - @property - def json_format(self) -> global___StreamFormat.JsonFormat: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + AVRO_FORMAT_FIELD_NUMBER: _builtins.int + PROTO_FORMAT_FIELD_NUMBER: _builtins.int + JSON_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def avro_format(self) -> Global___StreamFormat.AvroFormat: ... + @_builtins.property + def proto_format(self) -> Global___StreamFormat.ProtoFormat: ... + @_builtins.property + def json_format(self) -> Global___StreamFormat.JsonFormat: ... def __init__( self, *, - avro_format: global___StreamFormat.AvroFormat | None = ..., - proto_format: global___StreamFormat.ProtoFormat | None = ..., - json_format: global___StreamFormat.JsonFormat | None = ..., + avro_format: Global___StreamFormat.AvroFormat | None = ..., + proto_format: Global___StreamFormat.ProtoFormat | None = ..., + json_format: Global___StreamFormat.JsonFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["avro_format", "proto_format", "json_format"] | None: ... - -global___StreamFormat = StreamFormat + _HasFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["avro_format", "proto_format", "json_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___StreamFormat: _TypeAlias = StreamFormat # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi b/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi index e603c8551d0..d7257ca6dd1 100644 --- a/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi @@ -16,40 +16,42 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataFormat_pb2 -import feast.core.Feature_pb2 -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataFormat_pb2 as _DataFormat_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class DataSource(google.protobuf.message.Message): +@_typing.final +class DataSource(_message.Message): """Defines a Data Source that can be used source Feature data Next available id: 28 """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _SourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _SourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataSource._SourceType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _SourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[DataSource._SourceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: DataSource._SourceType.ValueType # 0 BATCH_FILE: DataSource._SourceType.ValueType # 1 BATCH_SNOWFLAKE: DataSource._SourceType.ValueType # 8 @@ -83,510 +85,559 @@ class DataSource(google.protobuf.message.Message): BATCH_SPARK: DataSource.SourceType.ValueType # 11 BATCH_ATHENA: DataSource.SourceType.ValueType # 12 - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class FieldMappingEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FieldMappingEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class SourceMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EARLIESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int - LATESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def earliestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def latestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class SourceMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + EARLIESTEVENTTIMESTAMP_FIELD_NUMBER: _builtins.int + LATESTEVENTTIMESTAMP_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def earliestEventTimestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def latestEventTimestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - earliestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - latestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + earliestEventTimestamp: _timestamp_pb2.Timestamp | None = ..., + latestEventTimestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class FileOptions(google.protobuf.message.Message): + @_typing.final + class FileOptions(_message.Message): """Defines options for DataSource that sources features from a file""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FILE_FORMAT_FIELD_NUMBER: builtins.int - URI_FIELD_NUMBER: builtins.int - S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: builtins.int - @property - def file_format(self) -> feast.core.DataFormat_pb2.FileFormat: ... - uri: builtins.str + FILE_FORMAT_FIELD_NUMBER: _builtins.int + URI_FIELD_NUMBER: _builtins.int + S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: _builtins.int + uri: _builtins.str """Target URL of file to retrieve and source features from. s3://path/to/file for AWS S3 storage gs://path/to/file for GCP GCS storage file:///path/to/file for local storage """ - s3_endpoint_override: builtins.str + s3_endpoint_override: _builtins.str """override AWS S3 storage endpoint with custom S3 endpoint""" + @_builtins.property + def file_format(self) -> _DataFormat_pb2.FileFormat: ... def __init__( self, *, - file_format: feast.core.DataFormat_pb2.FileFormat | None = ..., - uri: builtins.str = ..., - s3_endpoint_override: builtins.str = ..., + file_format: _DataFormat_pb2.FileFormat | None = ..., + uri: _builtins.str = ..., + s3_endpoint_override: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["file_format", b"file_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["file_format", b"file_format", "s3_endpoint_override", b"s3_endpoint_override", "uri", b"uri"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file_format", b"file_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file_format", b"file_format", "s3_endpoint_override", b"s3_endpoint_override", "uri", b"uri"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class BigQueryOptions(google.protobuf.message.Message): + @_typing.final + class BigQueryOptions(_message.Message): """Defines options for DataSource that sources features from a BigQuery Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + table: _builtins.str """Full table reference in the form of [project:dataset.table]""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TrinoOptions(google.protobuf.message.Message): + @_typing.final + class TrinoOptions(_message.Message): """Defines options for DataSource that sources features from a Trino Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + table: _builtins.str """Full table reference in the form of [project:dataset.table]""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class KafkaOptions(google.protobuf.message.Message): + @_typing.final + class KafkaOptions(_message.Message): """Defines options for DataSource that sources features from Kafka messages. Each message should be a Protobuf that can be decoded with the generated Java Protobuf class at the given class path """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - KAFKA_BOOTSTRAP_SERVERS_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - MESSAGE_FORMAT_FIELD_NUMBER: builtins.int - WATERMARK_DELAY_THRESHOLD_FIELD_NUMBER: builtins.int - kafka_bootstrap_servers: builtins.str + KAFKA_BOOTSTRAP_SERVERS_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + MESSAGE_FORMAT_FIELD_NUMBER: _builtins.int + WATERMARK_DELAY_THRESHOLD_FIELD_NUMBER: _builtins.int + kafka_bootstrap_servers: _builtins.str """Comma separated list of Kafka bootstrap servers. Used for feature tables without a defined source host[:port]]""" - topic: builtins.str + topic: _builtins.str """Kafka topic to collect feature data from.""" - @property - def message_format(self) -> feast.core.DataFormat_pb2.StreamFormat: + @_builtins.property + def message_format(self) -> _DataFormat_pb2.StreamFormat: """Defines the stream data format encoding feature/entity data in Kafka messages.""" - @property - def watermark_delay_threshold(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def watermark_delay_threshold(self) -> _duration_pb2.Duration: """Watermark delay threshold for stream data""" + def __init__( self, *, - kafka_bootstrap_servers: builtins.str = ..., - topic: builtins.str = ..., - message_format: feast.core.DataFormat_pb2.StreamFormat | None = ..., - watermark_delay_threshold: google.protobuf.duration_pb2.Duration | None = ..., + kafka_bootstrap_servers: _builtins.str = ..., + topic: _builtins.str = ..., + message_format: _DataFormat_pb2.StreamFormat | None = ..., + watermark_delay_threshold: _duration_pb2.Duration | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["message_format", b"message_format", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["kafka_bootstrap_servers", b"kafka_bootstrap_servers", "message_format", b"message_format", "topic", b"topic", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message_format", b"message_format", "watermark_delay_threshold", b"watermark_delay_threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kafka_bootstrap_servers", b"kafka_bootstrap_servers", "message_format", b"message_format", "topic", b"topic", "watermark_delay_threshold", b"watermark_delay_threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class KinesisOptions(google.protobuf.message.Message): + @_typing.final + class KinesisOptions(_message.Message): """Defines options for DataSource that sources features from Kinesis records. Each record should be a Protobuf that can be decoded with the generated Java Protobuf class at the given class path """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - REGION_FIELD_NUMBER: builtins.int - STREAM_NAME_FIELD_NUMBER: builtins.int - RECORD_FORMAT_FIELD_NUMBER: builtins.int - region: builtins.str + REGION_FIELD_NUMBER: _builtins.int + STREAM_NAME_FIELD_NUMBER: _builtins.int + RECORD_FORMAT_FIELD_NUMBER: _builtins.int + region: _builtins.str """AWS region of the Kinesis stream""" - stream_name: builtins.str + stream_name: _builtins.str """Name of the Kinesis stream to obtain feature data from.""" - @property - def record_format(self) -> feast.core.DataFormat_pb2.StreamFormat: + @_builtins.property + def record_format(self) -> _DataFormat_pb2.StreamFormat: """Defines the data format encoding the feature/entity data in Kinesis records. Kinesis Data Sources support Avro and Proto as data formats. """ + def __init__( self, *, - region: builtins.str = ..., - stream_name: builtins.str = ..., - record_format: feast.core.DataFormat_pb2.StreamFormat | None = ..., + region: _builtins.str = ..., + stream_name: _builtins.str = ..., + record_format: _DataFormat_pb2.StreamFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["record_format", b"record_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["record_format", b"record_format", "region", b"region", "stream_name", b"stream_name"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["record_format", b"record_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["record_format", b"record_format", "region", b"region", "stream_name", b"stream_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedshiftOptions(google.protobuf.message.Message): + @_typing.final + class RedshiftOptions(_message.Message): """Defines options for DataSource that sources features from a Redshift Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Redshift table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - schema: builtins.str + schema: _builtins.str """Redshift schema name""" - database: builtins.str + database: _builtins.str """Redshift database name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - schema: builtins.str = ..., - database: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + schema: _builtins.str = ..., + database: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AthenaOptions(google.protobuf.message.Message): + @_typing.final + class AthenaOptions(_message.Message): """Defines options for DataSource that sources features from a Athena Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - DATA_SOURCE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + DATA_SOURCE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Athena table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - database: builtins.str + database: _builtins.str """Athena database name""" - data_source: builtins.str + data_source: _builtins.str """Athena schema name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - database: builtins.str = ..., - data_source: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + database: _builtins.str = ..., + data_source: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_source", b"data_source", "database", b"database", "query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_source", b"data_source", "database", b"database", "query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SnowflakeOptions(google.protobuf.message.Message): + @_typing.final + class SnowflakeOptions(_message.Message): """Defines options for DataSource that sources features from a Snowflake Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Snowflake table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - schema: builtins.str + schema: _builtins.str """Snowflake schema name""" - database: builtins.str + database: _builtins.str """Snowflake schema name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - schema: builtins.str = ..., - database: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + schema: _builtins.str = ..., + database: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SparkOptions(google.protobuf.message.Message): + @_typing.final + class SparkOptions(_message.Message): """Defines options for DataSource that sources features from a spark table/query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - FILE_FORMAT_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FORMAT_FIELD_NUMBER: builtins.int - TABLE_FORMAT_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + PATH_FIELD_NUMBER: _builtins.int + FILE_FORMAT_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FORMAT_FIELD_NUMBER: _builtins.int + TABLE_FORMAT_FIELD_NUMBER: _builtins.int + table: _builtins.str """Table name""" - query: builtins.str + query: _builtins.str """Spark SQl query that returns the table, this is an alternative to `table`""" - path: builtins.str + path: _builtins.str """Path from which spark can read the table, this is an alternative to `table`""" - file_format: builtins.str + file_format: _builtins.str """Format of files at `path` (e.g. parquet, avro, etc)""" - date_partition_column_format: builtins.str + date_partition_column_format: _builtins.str """Date Format of date partition column (e.g. %Y-%m-%d)""" - @property - def table_format(self) -> feast.core.DataFormat_pb2.TableFormat: + @_builtins.property + def table_format(self) -> _DataFormat_pb2.TableFormat: """Table Format (e.g. iceberg, delta, hudi)""" + def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - path: builtins.str = ..., - file_format: builtins.str = ..., - date_partition_column_format: builtins.str = ..., - table_format: feast.core.DataFormat_pb2.TableFormat | None = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + path: _builtins.str = ..., + file_format: _builtins.str = ..., + date_partition_column_format: _builtins.str = ..., + table_format: _DataFormat_pb2.TableFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["table_format", b"table_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["date_partition_column_format", b"date_partition_column_format", "file_format", b"file_format", "path", b"path", "query", b"query", "table", b"table", "table_format", b"table_format"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["table_format", b"table_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["date_partition_column_format", b"date_partition_column_format", "file_format", b"file_format", "path", b"path", "query", b"query", "table", b"table", "table_format", b"table_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CustomSourceOptions(google.protobuf.message.Message): + @_typing.final + class CustomSourceOptions(_message.Message): """Defines configuration for custom third-party data sources.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - CONFIGURATION_FIELD_NUMBER: builtins.int - configuration: builtins.bytes + CONFIGURATION_FIELD_NUMBER: _builtins.int + configuration: _builtins.bytes """Serialized configuration information for the data source. The implementer of the custom data source is responsible for serializing and deserializing data from bytes """ def __init__( self, *, - configuration: builtins.bytes = ..., + configuration: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["configuration", b"configuration"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["configuration", b"configuration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RequestDataOptions(google.protobuf.message.Message): + @_typing.final + class RequestDataOptions(_message.Message): """Defines options for DataSource that sources features from request data""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class DeprecatedSchemaEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class DeprecatedSchemaEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: _feast_types_Value_pb2.ValueType.Enum.ValueType + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _Value_pb2.ValueType.Enum.ValueType def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.ValueType.Enum.ValueType = ..., + key: _builtins.str = ..., + value: _Value_pb2.ValueType.Enum.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - DEPRECATED_SCHEMA_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - @property - def deprecated_schema(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, _feast_types_Value_pb2.ValueType.Enum.ValueType]: + DEPRECATED_SCHEMA_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + @_builtins.property + def deprecated_schema(self) -> _containers.ScalarMap[_builtins.str, _Value_pb2.ValueType.Enum.ValueType]: """Mapping of feature name to type""" - @property - def schema(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: ... + + @_builtins.property + def schema(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: ... def __init__( self, *, - deprecated_schema: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.ValueType.Enum.ValueType] | None = ..., - schema: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., + deprecated_schema: _abc.Mapping[_builtins.str, _Value_pb2.ValueType.Enum.ValueType] | None = ..., + schema: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["deprecated_schema", b"deprecated_schema", "schema", b"schema"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["deprecated_schema", b"deprecated_schema", "schema", b"schema"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class PushOptions(google.protobuf.message.Message): + @_typing.final + class PushOptions(_message.Message): """Defines options for DataSource that supports pushing data to it. This allows data to be pushed to the online store on-demand, such as by stream consumers. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - FIELD_MAPPING_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: builtins.int - DATA_SOURCE_CLASS_TYPE_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - FILE_OPTIONS_FIELD_NUMBER: builtins.int - BIGQUERY_OPTIONS_FIELD_NUMBER: builtins.int - KAFKA_OPTIONS_FIELD_NUMBER: builtins.int - KINESIS_OPTIONS_FIELD_NUMBER: builtins.int - REDSHIFT_OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_DATA_OPTIONS_FIELD_NUMBER: builtins.int - CUSTOM_OPTIONS_FIELD_NUMBER: builtins.int - SNOWFLAKE_OPTIONS_FIELD_NUMBER: builtins.int - PUSH_OPTIONS_FIELD_NUMBER: builtins.int - SPARK_OPTIONS_FIELD_NUMBER: builtins.int - TRINO_OPTIONS_FIELD_NUMBER: builtins.int - ATHENA_OPTIONS_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + FIELD_MAPPING_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: _builtins.int + DATA_SOURCE_CLASS_TYPE_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + FILE_OPTIONS_FIELD_NUMBER: _builtins.int + BIGQUERY_OPTIONS_FIELD_NUMBER: _builtins.int + KAFKA_OPTIONS_FIELD_NUMBER: _builtins.int + KINESIS_OPTIONS_FIELD_NUMBER: _builtins.int + REDSHIFT_OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_DATA_OPTIONS_FIELD_NUMBER: _builtins.int + CUSTOM_OPTIONS_FIELD_NUMBER: _builtins.int + SNOWFLAKE_OPTIONS_FIELD_NUMBER: _builtins.int + PUSH_OPTIONS_FIELD_NUMBER: _builtins.int + SPARK_OPTIONS_FIELD_NUMBER: _builtins.int + TRINO_OPTIONS_FIELD_NUMBER: _builtins.int + ATHENA_OPTIONS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Unique name of data source within the project""" - project: builtins.str + project: _builtins.str """Name of Feast project that this data source belongs to.""" - description: builtins.str - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - owner: builtins.str - type: global___DataSource.SourceType.ValueType - @property - def field_mapping(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Defines mapping between fields in the sourced data - and fields in parent FeatureTable. - """ - timestamp_field: builtins.str + description: _builtins.str + owner: _builtins.str + type: Global___DataSource.SourceType.ValueType + timestamp_field: _builtins.str """Must specify event timestamp column name""" - date_partition_column: builtins.str + date_partition_column: _builtins.str """(Optional) Specify partition column useful for file sources """ - created_timestamp_column: builtins.str + created_timestamp_column: _builtins.str """Must specify creation timestamp column name""" - data_source_class_type: builtins.str + data_source_class_type: _builtins.str """This is an internal field that is represents the python class for the data source object a proto object represents. This should be set by feast, and not by users. The field is used primarily by custom data sources and is mandatory for them to set. Feast may set it for first party sources as well. """ - @property - def batch_source(self) -> global___DataSource: + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def field_mapping(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Defines mapping between fields in the sourced data + and fields in parent FeatureTable. + """ + + @_builtins.property + def batch_source(self) -> Global___DataSource: """Optional batch source for streaming sources for historical features and materialization.""" - @property - def meta(self) -> global___DataSource.SourceMeta: ... - @property - def file_options(self) -> global___DataSource.FileOptions: ... - @property - def bigquery_options(self) -> global___DataSource.BigQueryOptions: ... - @property - def kafka_options(self) -> global___DataSource.KafkaOptions: ... - @property - def kinesis_options(self) -> global___DataSource.KinesisOptions: ... - @property - def redshift_options(self) -> global___DataSource.RedshiftOptions: ... - @property - def request_data_options(self) -> global___DataSource.RequestDataOptions: ... - @property - def custom_options(self) -> global___DataSource.CustomSourceOptions: ... - @property - def snowflake_options(self) -> global___DataSource.SnowflakeOptions: ... - @property - def push_options(self) -> global___DataSource.PushOptions: ... - @property - def spark_options(self) -> global___DataSource.SparkOptions: ... - @property - def trino_options(self) -> global___DataSource.TrinoOptions: ... - @property - def athena_options(self) -> global___DataSource.AthenaOptions: ... + + @_builtins.property + def meta(self) -> Global___DataSource.SourceMeta: ... + @_builtins.property + def file_options(self) -> Global___DataSource.FileOptions: ... + @_builtins.property + def bigquery_options(self) -> Global___DataSource.BigQueryOptions: ... + @_builtins.property + def kafka_options(self) -> Global___DataSource.KafkaOptions: ... + @_builtins.property + def kinesis_options(self) -> Global___DataSource.KinesisOptions: ... + @_builtins.property + def redshift_options(self) -> Global___DataSource.RedshiftOptions: ... + @_builtins.property + def request_data_options(self) -> Global___DataSource.RequestDataOptions: ... + @_builtins.property + def custom_options(self) -> Global___DataSource.CustomSourceOptions: ... + @_builtins.property + def snowflake_options(self) -> Global___DataSource.SnowflakeOptions: ... + @_builtins.property + def push_options(self) -> Global___DataSource.PushOptions: ... + @_builtins.property + def spark_options(self) -> Global___DataSource.SparkOptions: ... + @_builtins.property + def trino_options(self) -> Global___DataSource.TrinoOptions: ... + @_builtins.property + def athena_options(self) -> Global___DataSource.AthenaOptions: ... def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - type: global___DataSource.SourceType.ValueType = ..., - field_mapping: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - timestamp_field: builtins.str = ..., - date_partition_column: builtins.str = ..., - created_timestamp_column: builtins.str = ..., - data_source_class_type: builtins.str = ..., - batch_source: global___DataSource | None = ..., - meta: global___DataSource.SourceMeta | None = ..., - file_options: global___DataSource.FileOptions | None = ..., - bigquery_options: global___DataSource.BigQueryOptions | None = ..., - kafka_options: global___DataSource.KafkaOptions | None = ..., - kinesis_options: global___DataSource.KinesisOptions | None = ..., - redshift_options: global___DataSource.RedshiftOptions | None = ..., - request_data_options: global___DataSource.RequestDataOptions | None = ..., - custom_options: global___DataSource.CustomSourceOptions | None = ..., - snowflake_options: global___DataSource.SnowflakeOptions | None = ..., - push_options: global___DataSource.PushOptions | None = ..., - spark_options: global___DataSource.SparkOptions | None = ..., - trino_options: global___DataSource.TrinoOptions | None = ..., - athena_options: global___DataSource.AthenaOptions | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + type: Global___DataSource.SourceType.ValueType = ..., + field_mapping: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + timestamp_field: _builtins.str = ..., + date_partition_column: _builtins.str = ..., + created_timestamp_column: _builtins.str = ..., + data_source_class_type: _builtins.str = ..., + batch_source: Global___DataSource | None = ..., + meta: Global___DataSource.SourceMeta | None = ..., + file_options: Global___DataSource.FileOptions | None = ..., + bigquery_options: Global___DataSource.BigQueryOptions | None = ..., + kafka_options: Global___DataSource.KafkaOptions | None = ..., + kinesis_options: Global___DataSource.KinesisOptions | None = ..., + redshift_options: Global___DataSource.RedshiftOptions | None = ..., + request_data_options: Global___DataSource.RequestDataOptions | None = ..., + custom_options: Global___DataSource.CustomSourceOptions | None = ..., + snowflake_options: Global___DataSource.SnowflakeOptions | None = ..., + push_options: Global___DataSource.PushOptions | None = ..., + spark_options: Global___DataSource.SparkOptions | None = ..., + trino_options: Global___DataSource.TrinoOptions | None = ..., + athena_options: Global___DataSource.AthenaOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "custom_options", b"custom_options", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "options", b"options", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "trino_options", b"trino_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "created_timestamp_column", b"created_timestamp_column", "custom_options", b"custom_options", "data_source_class_type", b"data_source_class_type", "date_partition_column", b"date_partition_column", "description", b"description", "field_mapping", b"field_mapping", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "name", b"name", "options", b"options", "owner", b"owner", "project", b"project", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "tags", b"tags", "timestamp_field", b"timestamp_field", "trino_options", b"trino_options", "type", b"type"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["file_options", "bigquery_options", "kafka_options", "kinesis_options", "redshift_options", "request_data_options", "custom_options", "snowflake_options", "push_options", "spark_options", "trino_options", "athena_options"] | None: ... - -global___DataSource = DataSource - -class DataSourceList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATASOURCES_FIELD_NUMBER: builtins.int - @property - def datasources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataSource]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "custom_options", b"custom_options", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "options", b"options", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "trino_options", b"trino_options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "created_timestamp_column", b"created_timestamp_column", "custom_options", b"custom_options", "data_source_class_type", b"data_source_class_type", "date_partition_column", b"date_partition_column", "description", b"description", "field_mapping", b"field_mapping", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "name", b"name", "options", b"options", "owner", b"owner", "project", b"project", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "tags", b"tags", "timestamp_field", b"timestamp_field", "trino_options", b"trino_options", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_options: _TypeAlias = _typing.Literal["file_options", "bigquery_options", "kafka_options", "kinesis_options", "redshift_options", "request_data_options", "custom_options", "snowflake_options", "push_options", "spark_options", "trino_options", "athena_options"] # noqa: Y015 + _WhichOneofArgType_options: _TypeAlias = _typing.Literal["options", b"options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_options) -> _WhichOneofReturnType_options | None: ... + +Global___DataSource: _TypeAlias = DataSource # noqa: Y015 + +@_typing.final +class DataSourceList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATASOURCES_FIELD_NUMBER: _builtins.int + @_builtins.property + def datasources(self) -> _containers.RepeatedCompositeFieldContainer[Global___DataSource]: ... def __init__( self, *, - datasources: collections.abc.Iterable[global___DataSource] | None = ..., + datasources: _abc.Iterable[Global___DataSource] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datasources", b"datasources"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["datasources", b"datasources"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DataSourceList = DataSourceList +Global___DataSourceList: _TypeAlias = DataSourceList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi index 6339a97536e..f9a451e8560 100644 --- a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi @@ -16,52 +16,60 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import google.protobuf.wrappers_pb2 + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class DatastoreTable(google.protobuf.message.Message): +@_typing.final +class DatastoreTable(_message.Message): """Represents a Datastore table""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - PROJECT_ID_FIELD_NUMBER: builtins.int - NAMESPACE_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + PROJECT_ID_FIELD_NUMBER: _builtins.int + NAMESPACE_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + project: _builtins.str """Feast project of the table""" - name: builtins.str + name: _builtins.str """Name of the table""" - @property - def project_id(self) -> google.protobuf.wrappers_pb2.StringValue: + @_builtins.property + def project_id(self) -> _wrappers_pb2.StringValue: """GCP project id""" - @property - def namespace(self) -> google.protobuf.wrappers_pb2.StringValue: + + @_builtins.property + def namespace(self) -> _wrappers_pb2.StringValue: """Datastore namespace""" - @property - def database(self) -> google.protobuf.wrappers_pb2.StringValue: + + @_builtins.property + def database(self) -> _wrappers_pb2.StringValue: """Firestore database""" + def __init__( self, *, - project: builtins.str = ..., - name: builtins.str = ..., - project_id: google.protobuf.wrappers_pb2.StringValue | None = ..., - namespace: google.protobuf.wrappers_pb2.StringValue | None = ..., - database: google.protobuf.wrappers_pb2.StringValue | None = ..., + project: _builtins.str = ..., + name: _builtins.str = ..., + project_id: _wrappers_pb2.StringValue | None = ..., + namespace: _wrappers_pb2.StringValue | None = ..., + database: _wrappers_pb2.StringValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["database", b"database", "namespace", b"namespace", "project_id", b"project_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "name", b"name", "namespace", b"namespace", "project", b"project", "project_id", b"project_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "namespace", b"namespace", "project_id", b"project_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "name", b"name", "namespace", b"namespace", "project", b"project", "project_id", b"project_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DatastoreTable = DatastoreTable +Global___DatastoreTable: _TypeAlias = DatastoreTable # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi index d2e1418a2aa..8cf5fe4c7bb 100644 --- a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi @@ -16,130 +16,147 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Entity(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Entity(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___EntitySpecV2: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___EntitySpecV2: """User-specified specifications of this entity.""" - @property - def meta(self) -> global___EntityMeta: + + @_builtins.property + def meta(self) -> Global___EntityMeta: """System-populated metadata for this entity.""" + def __init__( self, *, - spec: global___EntitySpecV2 | None = ..., - meta: global___EntityMeta | None = ..., + spec: Global___EntitySpecV2 | None = ..., + meta: Global___EntityMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Entity = Entity +Global___Entity: _TypeAlias = Entity # noqa: Y015 -class EntitySpecV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntitySpecV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - VALUE_TYPE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - JOIN_KEY_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + VALUE_TYPE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + JOIN_KEY_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the entity.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature table belongs to.""" - value_type: _feast_types_Value_pb2.ValueType.Enum.ValueType + value_type: _Value_pb2.ValueType.Enum.ValueType """Type of the entity.""" - description: builtins.str + description: _builtins.str """Description of the entity.""" - join_key: builtins.str + join_key: _builtins.str """Join key for the entity (i.e. name of the column the entity maps to).""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """User defined metadata""" - owner: builtins.str + owner: _builtins.str """Owner of the entity.""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - value_type: _feast_types_Value_pb2.ValueType.Enum.ValueType = ..., - description: builtins.str = ..., - join_key: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + value_type: _Value_pb2.ValueType.Enum.ValueType = ..., + description: _builtins.str = ..., + join_key: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "join_key", b"join_key", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags", "value_type", b"value_type"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "join_key", b"join_key", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags", "value_type", b"value_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntitySpecV2 = EntitySpecV2 +Global___EntitySpecV2: _TypeAlias = EntitySpecV2 # noqa: Y015 -class EntityMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityMeta = EntityMeta +Global___EntityMeta: _TypeAlias = EntityMeta # noqa: Y015 -class EntityList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Entity]: ... + ENTITIES_FIELD_NUMBER: _builtins.int + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[Global___Entity]: ... def __init__( self, *, - entities: collections.abc.Iterable[global___Entity] | None = ..., + entities: _abc.Iterable[Global___Entity] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityList = EntityList +Global___EntityList: _TypeAlias = EntityList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi index 6d5879e52cb..125c198db48 100644 --- a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi @@ -2,305 +2,349 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.FeatureViewProjection_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import FeatureViewProjection_pb2 as _FeatureViewProjection_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureService(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureService(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureServiceSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureServiceSpec: """User-specified specifications of this feature service.""" - @property - def meta(self) -> global___FeatureServiceMeta: + + @_builtins.property + def meta(self) -> Global___FeatureServiceMeta: """System-populated metadata for this feature service.""" + def __init__( self, *, - spec: global___FeatureServiceSpec | None = ..., - meta: global___FeatureServiceMeta | None = ..., + spec: Global___FeatureServiceSpec | None = ..., + meta: Global___FeatureServiceMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureService = FeatureService +Global___FeatureService: _TypeAlias = FeatureService # noqa: Y015 -class FeatureServiceSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureServiceSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - LOGGING_CONFIG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + LOGGING_CONFIG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the Feature Service. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this Feature Service belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureViewProjection_pb2.FeatureViewProjection]: + description: _builtins.str + """Description of the feature service.""" + owner: _builtins.str + """Owner of the feature service.""" + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureViewProjection_pb2.FeatureViewProjection]: """Represents a projection that's to be applied on top of the FeatureView. Contains data such as the features to use from a FeatureView. """ - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - description: builtins.str - """Description of the feature service.""" - owner: builtins.str - """Owner of the feature service.""" - @property - def logging_config(self) -> global___LoggingConfig: + + @_builtins.property + def logging_config(self) -> Global___LoggingConfig: """(optional) if provided logging will be enabled for this feature service.""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[feast.core.FeatureViewProjection_pb2.FeatureViewProjection] | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - logging_config: global___LoggingConfig | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_FeatureViewProjection_pb2.FeatureViewProjection] | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + logging_config: Global___LoggingConfig | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["logging_config", b"logging_config"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "features", b"features", "logging_config", b"logging_config", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["logging_config", b"logging_config"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "features", b"features", "logging_config", b"logging_config", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureServiceSpec = FeatureServiceSpec +Global___FeatureServiceSpec: _TypeAlias = FeatureServiceSpec # noqa: Y015 -class FeatureServiceMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureServiceMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature Service is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature Service is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... - -global___FeatureServiceMeta = FeatureServiceMeta - -class LoggingConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class FileDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PATH_FIELD_NUMBER: builtins.int - S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: builtins.int - PARTITION_BY_FIELD_NUMBER: builtins.int - path: builtins.str - s3_endpoint_override: builtins.str - @property - def partition_by(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___FeatureServiceMeta: _TypeAlias = FeatureServiceMeta # noqa: Y015 + +@_typing.final +class LoggingConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class FileDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PATH_FIELD_NUMBER: _builtins.int + S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: _builtins.int + PARTITION_BY_FIELD_NUMBER: _builtins.int + path: _builtins.str + s3_endpoint_override: _builtins.str + @_builtins.property + def partition_by(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """column names to use for partitioning""" + def __init__( self, *, - path: builtins.str = ..., - s3_endpoint_override: builtins.str = ..., - partition_by: collections.abc.Iterable[builtins.str] | None = ..., + path: _builtins.str = ..., + s3_endpoint_override: _builtins.str = ..., + partition_by: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partition_by", b"partition_by", "path", b"path", "s3_endpoint_override", b"s3_endpoint_override"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["partition_by", b"partition_by", "path", b"path", "s3_endpoint_override", b"s3_endpoint_override"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class BigQueryDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class BigQueryDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_REF_FIELD_NUMBER: builtins.int - table_ref: builtins.str + TABLE_REF_FIELD_NUMBER: _builtins.int + table_ref: _builtins.str """Full table reference in the form of [project:dataset.table]""" def __init__( self, *, - table_ref: builtins.str = ..., + table_ref: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_ref", b"table_ref"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_ref", b"table_ref"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedshiftDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RedshiftDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. ClusterId and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AthenaDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AthenaDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. data_source and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SnowflakeDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class SnowflakeDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. Schema and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CustomDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class CustomDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class ConfigEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class ConfigEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - KIND_FIELD_NUMBER: builtins.int - CONFIG_FIELD_NUMBER: builtins.int - kind: builtins.str - @property - def config(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + KIND_FIELD_NUMBER: _builtins.int + CONFIG_FIELD_NUMBER: _builtins.int + kind: _builtins.str + @_builtins.property + def config(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... def __init__( self, *, - kind: builtins.str = ..., - config: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + kind: _builtins.str = ..., + config: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "kind", b"kind"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "kind", b"kind"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CouchbaseColumnarDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class CouchbaseColumnarDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATABASE_FIELD_NUMBER: builtins.int - SCOPE_FIELD_NUMBER: builtins.int - COLLECTION_FIELD_NUMBER: builtins.int - database: builtins.str + DATABASE_FIELD_NUMBER: _builtins.int + SCOPE_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + database: _builtins.str """Destination database name""" - scope: builtins.str + scope: _builtins.str """Destination scope name""" - collection: builtins.str + collection: _builtins.str """Destination collection name""" def __init__( self, *, - database: builtins.str = ..., - scope: builtins.str = ..., - collection: builtins.str = ..., + database: _builtins.str = ..., + scope: _builtins.str = ..., + collection: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["collection", b"collection", "database", b"database", "scope", b"scope"]) -> None: ... - - SAMPLE_RATE_FIELD_NUMBER: builtins.int - FILE_DESTINATION_FIELD_NUMBER: builtins.int - BIGQUERY_DESTINATION_FIELD_NUMBER: builtins.int - REDSHIFT_DESTINATION_FIELD_NUMBER: builtins.int - SNOWFLAKE_DESTINATION_FIELD_NUMBER: builtins.int - CUSTOM_DESTINATION_FIELD_NUMBER: builtins.int - ATHENA_DESTINATION_FIELD_NUMBER: builtins.int - COUCHBASE_COLUMNAR_DESTINATION_FIELD_NUMBER: builtins.int - sample_rate: builtins.float - @property - def file_destination(self) -> global___LoggingConfig.FileDestination: ... - @property - def bigquery_destination(self) -> global___LoggingConfig.BigQueryDestination: ... - @property - def redshift_destination(self) -> global___LoggingConfig.RedshiftDestination: ... - @property - def snowflake_destination(self) -> global___LoggingConfig.SnowflakeDestination: ... - @property - def custom_destination(self) -> global___LoggingConfig.CustomDestination: ... - @property - def athena_destination(self) -> global___LoggingConfig.AthenaDestination: ... - @property - def couchbase_columnar_destination(self) -> global___LoggingConfig.CouchbaseColumnarDestination: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "database", b"database", "scope", b"scope"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + FILE_DESTINATION_FIELD_NUMBER: _builtins.int + BIGQUERY_DESTINATION_FIELD_NUMBER: _builtins.int + REDSHIFT_DESTINATION_FIELD_NUMBER: _builtins.int + SNOWFLAKE_DESTINATION_FIELD_NUMBER: _builtins.int + CUSTOM_DESTINATION_FIELD_NUMBER: _builtins.int + ATHENA_DESTINATION_FIELD_NUMBER: _builtins.int + COUCHBASE_COLUMNAR_DESTINATION_FIELD_NUMBER: _builtins.int + sample_rate: _builtins.float + @_builtins.property + def file_destination(self) -> Global___LoggingConfig.FileDestination: ... + @_builtins.property + def bigquery_destination(self) -> Global___LoggingConfig.BigQueryDestination: ... + @_builtins.property + def redshift_destination(self) -> Global___LoggingConfig.RedshiftDestination: ... + @_builtins.property + def snowflake_destination(self) -> Global___LoggingConfig.SnowflakeDestination: ... + @_builtins.property + def custom_destination(self) -> Global___LoggingConfig.CustomDestination: ... + @_builtins.property + def athena_destination(self) -> Global___LoggingConfig.AthenaDestination: ... + @_builtins.property + def couchbase_columnar_destination(self) -> Global___LoggingConfig.CouchbaseColumnarDestination: ... def __init__( self, *, - sample_rate: builtins.float = ..., - file_destination: global___LoggingConfig.FileDestination | None = ..., - bigquery_destination: global___LoggingConfig.BigQueryDestination | None = ..., - redshift_destination: global___LoggingConfig.RedshiftDestination | None = ..., - snowflake_destination: global___LoggingConfig.SnowflakeDestination | None = ..., - custom_destination: global___LoggingConfig.CustomDestination | None = ..., - athena_destination: global___LoggingConfig.AthenaDestination | None = ..., - couchbase_columnar_destination: global___LoggingConfig.CouchbaseColumnarDestination | None = ..., + sample_rate: _builtins.float = ..., + file_destination: Global___LoggingConfig.FileDestination | None = ..., + bigquery_destination: Global___LoggingConfig.BigQueryDestination | None = ..., + redshift_destination: Global___LoggingConfig.RedshiftDestination | None = ..., + snowflake_destination: Global___LoggingConfig.SnowflakeDestination | None = ..., + custom_destination: Global___LoggingConfig.CustomDestination | None = ..., + athena_destination: Global___LoggingConfig.AthenaDestination | None = ..., + couchbase_columnar_destination: Global___LoggingConfig.CouchbaseColumnarDestination | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "snowflake_destination", b"snowflake_destination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "sample_rate", b"sample_rate", "snowflake_destination", b"snowflake_destination"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["destination", b"destination"]) -> typing_extensions.Literal["file_destination", "bigquery_destination", "redshift_destination", "snowflake_destination", "custom_destination", "athena_destination", "couchbase_columnar_destination"] | None: ... - -global___LoggingConfig = LoggingConfig - -class FeatureServiceList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURESERVICES_FIELD_NUMBER: builtins.int - @property - def featureservices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureService]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "snowflake_destination", b"snowflake_destination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "sample_rate", b"sample_rate", "snowflake_destination", b"snowflake_destination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_destination: _TypeAlias = _typing.Literal["file_destination", "bigquery_destination", "redshift_destination", "snowflake_destination", "custom_destination", "athena_destination", "couchbase_columnar_destination"] # noqa: Y015 + _WhichOneofArgType_destination: _TypeAlias = _typing.Literal["destination", b"destination"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_destination) -> _WhichOneofReturnType_destination | None: ... + +Global___LoggingConfig: _TypeAlias = LoggingConfig # noqa: Y015 + +@_typing.final +class FeatureServiceList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURESERVICES_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureservices(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureService]: ... def __init__( self, *, - featureservices: collections.abc.Iterable[global___FeatureService] | None = ..., + featureservices: _abc.Iterable[Global___FeatureService] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureservices", b"featureservices"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureservices", b"featureservices"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureServiceList = FeatureServiceList +Global___FeatureServiceList: _TypeAlias = FeatureServiceList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi index dd41c2d214a..c6ff726e507 100644 --- a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi @@ -16,151 +16,174 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureTable(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureTable(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureTableSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureTableSpec: """User-specified specifications of this feature table.""" - @property - def meta(self) -> global___FeatureTableMeta: + + @_builtins.property + def meta(self) -> Global___FeatureTableMeta: """System-populated metadata for this feature table.""" + def __init__( self, *, - spec: global___FeatureTableSpec | None = ..., - meta: global___FeatureTableMeta | None = ..., + spec: Global___FeatureTableSpec | None = ..., + meta: Global___FeatureTableMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureTable = FeatureTable +Global___FeatureTable: _TypeAlias = FeatureTable # noqa: Y015 -class FeatureTableSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureTableSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class LabelsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class LabelsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - LABELS_FIELD_NUMBER: builtins.int - MAX_AGE_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + LABELS_FIELD_NUMBER: _builtins.int + MAX_AGE_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature table. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature table belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List names of entities to associate with the Features defined in this Feature Table. Not updatable. """ - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature table.""" - @property - def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def labels(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def max_age(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def max_age(self) -> _duration_pb2.Duration: """Features in this feature table can only be retrieved from online serving younger than max age. Age is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside max age will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource to source batch/offline feature data. Only batch DataSource can be specified (ie source type should start with 'BATCH_') """ - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Stream/Online DataSource to source stream/online feature data. Only stream DataSource can be specified (ie source type should start with 'STREAM_') """ + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - max_age: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + labels: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + max_age: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "max_age", b"max_age", "stream_source", b"stream_source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "entities", b"entities", "features", b"features", "labels", b"labels", "max_age", b"max_age", "name", b"name", "project", b"project", "stream_source", b"stream_source"]) -> None: ... - -global___FeatureTableSpec = FeatureTableSpec - -class FeatureTableMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - REVISION_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature Table is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature Table is last updated""" - revision: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "max_age", b"max_age", "stream_source", b"stream_source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "entities", b"entities", "features", b"features", "labels", b"labels", "max_age", b"max_age", "name", b"name", "project", b"project", "stream_source", b"stream_source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___FeatureTableSpec: _TypeAlias = FeatureTableSpec # noqa: Y015 + +@_typing.final +class FeatureTableMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + REVISION_FIELD_NUMBER: _builtins.int + HASH_FIELD_NUMBER: _builtins.int + revision: _builtins.int """Auto incrementing revision no. of this Feature Table""" - hash: builtins.str + hash: _builtins.str """Hash entities, features, batch_source and stream_source to inform JobService if jobs should be restarted should hash change """ + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature Table is created""" + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature Table is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - revision: builtins.int = ..., - hash: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + revision: _builtins.int = ..., + hash: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "hash", b"hash", "last_updated_timestamp", b"last_updated_timestamp", "revision", b"revision"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "hash", b"hash", "last_updated_timestamp", b"last_updated_timestamp", "revision", b"revision"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureTableMeta = FeatureTableMeta +Global___FeatureTableMeta: _TypeAlias = FeatureTableMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi index 6fd1010f2e4..b5b8c976400 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi @@ -2,91 +2,104 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureViewProjection(google.protobuf.message.Message): +@_typing.final +class FeatureViewProjection(_message.Message): """A projection to be applied on top of a FeatureView. Contains the modifications to a FeatureView such as the features subset to use. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class JoinKeyMapEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class JoinKeyMapEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - FEATURE_VIEW_NAME_ALIAS_FIELD_NUMBER: builtins.int - FEATURE_COLUMNS_FIELD_NUMBER: builtins.int - JOIN_KEY_MAP_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - VERSION_TAG_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_NAME_ALIAS_FIELD_NUMBER: _builtins.int + FEATURE_COLUMNS_FIELD_NUMBER: _builtins.int + JOIN_KEY_MAP_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + VERSION_TAG_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str """The feature view name""" - feature_view_name_alias: builtins.str + feature_view_name_alias: _builtins.str """Alias for feature view name""" - @property - def feature_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + timestamp_field: _builtins.str + date_partition_column: _builtins.str + created_timestamp_column: _builtins.str + version_tag: _builtins.int + """Optional version tag for version-qualified feature references (e.g., @v2).""" + @_builtins.property + def feature_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """The features of the feature view that are a part of the feature reference.""" - @property - def join_key_map(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def join_key_map(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Map for entity join_key overrides of feature data entity join_key to entity data join_key""" - timestamp_field: builtins.str - date_partition_column: builtins.str - created_timestamp_column: builtins.str - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data.""" - version_tag: builtins.int - """Optional version tag for version-qualified feature references (e.g., @v2).""" + def __init__( self, *, - feature_view_name: builtins.str = ..., - feature_view_name_alias: builtins.str = ..., - feature_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - join_key_map: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - timestamp_field: builtins.str = ..., - date_partition_column: builtins.str = ..., - created_timestamp_column: builtins.str = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - version_tag: builtins.int | None = ..., + feature_view_name: _builtins.str = ..., + feature_view_name_alias: _builtins.str = ..., + feature_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + join_key_map: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + timestamp_field: _builtins.str = ..., + date_partition_column: _builtins.str = ..., + created_timestamp_column: _builtins.str = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + version_tag: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "stream_source", b"stream_source", "version_tag", b"version_tag"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "created_timestamp_column", b"created_timestamp_column", "date_partition_column", b"date_partition_column", "feature_columns", b"feature_columns", "feature_view_name", b"feature_view_name", "feature_view_name_alias", b"feature_view_name_alias", "join_key_map", b"join_key_map", "stream_source", b"stream_source", "timestamp_field", b"timestamp_field", "version_tag", b"version_tag"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_version_tag", b"_version_tag"]) -> typing_extensions.Literal["version_tag"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "stream_source", b"stream_source", "version_tag", b"version_tag"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "created_timestamp_column", b"created_timestamp_column", "date_partition_column", b"date_partition_column", "feature_columns", b"feature_columns", "feature_view_name", b"feature_view_name", "feature_view_name_alias", b"feature_view_name_alias", "join_key_map", b"join_key_map", "stream_source", b"stream_source", "timestamp_field", b"timestamp_field", "version_tag", b"version_tag"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__version_tag: _TypeAlias = _typing.Literal["version_tag"] # noqa: Y015 + _WhichOneofArgType__version_tag: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__version_tag) -> _WhichOneofReturnType__version_tag | None: ... -global___FeatureViewProjection = FeatureViewProjection +Global___FeatureViewProjection: _TypeAlias = FeatureViewProjection # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi index a6dba9d53d4..fae1911f435 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi @@ -16,72 +16,79 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureViewVersionRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewVersionRecord(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - PROJECT_ID_FIELD_NUMBER: builtins.int - VERSION_NUMBER_FIELD_NUMBER: builtins.int - FEATURE_VIEW_TYPE_FIELD_NUMBER: builtins.int - FEATURE_VIEW_PROTO_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str - project_id: builtins.str - version_number: builtins.int - feature_view_type: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + PROJECT_ID_FIELD_NUMBER: _builtins.int + VERSION_NUMBER_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_TYPE_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_PROTO_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str + project_id: _builtins.str + version_number: _builtins.int + feature_view_type: _builtins.str """"feature_view" | "stream_feature_view" | "on_demand_feature_view" """ - feature_view_proto: builtins.bytes + feature_view_proto: _builtins.bytes """serialized FV proto snapshot""" - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - description: builtins.str - version_id: builtins.str + description: _builtins.str + version_id: _builtins.str """auto-generated UUID for unique identification""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - feature_view_name: builtins.str = ..., - project_id: builtins.str = ..., - version_number: builtins.int = ..., - feature_view_type: builtins.str = ..., - feature_view_proto: builtins.bytes = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - description: builtins.str = ..., - version_id: builtins.str = ..., + feature_view_name: _builtins.str = ..., + project_id: _builtins.str = ..., + version_number: _builtins.int = ..., + feature_view_type: _builtins.str = ..., + feature_view_proto: _builtins.bytes = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + description: _builtins.str = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view_name", b"feature_view_name", "feature_view_proto", b"feature_view_proto", "feature_view_type", b"feature_view_type", "project_id", b"project_id", "version_id", b"version_id", "version_number", b"version_number"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view_name", b"feature_view_name", "feature_view_proto", b"feature_view_proto", "feature_view_type", b"feature_view_type", "project_id", b"project_id", "version_id", b"version_id", "version_number", b"version_number"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewVersionRecord = FeatureViewVersionRecord +Global___FeatureViewVersionRecord: _TypeAlias = FeatureViewVersionRecord # noqa: Y015 -class FeatureViewVersionHistory(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewVersionHistory(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RECORDS_FIELD_NUMBER: builtins.int - @property - def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewVersionRecord]: ... + RECORDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewVersionRecord]: ... def __init__( self, *, - records: collections.abc.Iterable[global___FeatureViewVersionRecord] | None = ..., + records: _abc.Iterable[Global___FeatureViewVersionRecord] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["records", b"records"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewVersionHistory = FeatureViewVersionHistory +Global___FeatureViewVersionHistory: _TypeAlias = FeatureViewVersionHistory # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureView_pb2.py b/sdk/python/feast/protos/feast/core/FeatureView_pb2.py index 43995d4aa72..de3fb93cb1f 100644 --- a/sdk/python/feast/protos/feast/core/FeatureView_pb2.py +++ b/sdk/python/feast/protos/feast/core/FeatureView_pb2.py @@ -19,7 +19,7 @@ from feast.protos.feast.core import Transformation_pb2 as feast_dot_core_dot_Transformation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x65\x61st/core/FeatureView.proto\x12\nfeast.core\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\"c\n\x0b\x46\x65\x61tureView\x12)\n\x04spec\x18\x01 \x01(\x0b\x32\x1b.feast.core.FeatureViewSpec\x12)\n\x04meta\x18\x02 \x01(\x0b\x32\x1b.feast.core.FeatureViewMeta\"\x80\x05\n\x0f\x46\x65\x61tureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x10\n\x08\x65ntities\x18\x03 \x03(\t\x12+\n\x08\x66\x65\x61tures\x18\x04 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x33\n\x04tags\x18\x05 \x03(\x0b\x32%.feast.core.FeatureViewSpec.TagsEntry\x12&\n\x03ttl\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12,\n\x0c\x62\x61tch_source\x18\x07 \x01(\x0b\x32\x16.feast.core.DataSource\x12\x0e\n\x06online\x18\x08 \x01(\x08\x12-\n\rstream_source\x18\t \x01(\x0b\x32\x16.feast.core.DataSource\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t\x12\r\n\x05owner\x18\x0b \x01(\t\x12\x31\n\x0e\x65ntity_columns\x18\x0c \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x0f\n\x07offline\x18\r \x01(\x08\x12\x31\n\x0csource_views\x18\x0e \x03(\x0b\x32\x1b.feast.core.FeatureViewSpec\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\x0f \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x0c\n\x04mode\x18\x10 \x01(\t\x12\x19\n\x11\x65nable_validation\x18\x11 \x01(\x08\x12\x0f\n\x07version\x18\x12 \x01(\t\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x80\x02\n\x0f\x46\x65\x61tureViewMeta\x12\x35\n\x11\x63reated_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_updated_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x19materialization_intervals\x18\x03 \x03(\x0b\x32#.feast.core.MaterializationInterval\x12\x1e\n\x16\x63urrent_version_number\x18\x04 \x01(\x05\x12\x12\n\nversion_id\x18\x05 \x01(\t\"w\n\x17MaterializationInterval\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"@\n\x0f\x46\x65\x61tureViewList\x12-\n\x0c\x66\x65\x61tureviews\x18\x01 \x03(\x0b\x32\x17.feast.core.FeatureViewBU\n\x10\x66\x65\x61st.proto.coreB\x10\x46\x65\x61tureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x65\x61st/core/FeatureView.proto\x12\nfeast.core\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\"c\n\x0b\x46\x65\x61tureView\x12)\n\x04spec\x18\x01 \x01(\x0b\x32\x1b.feast.core.FeatureViewSpec\x12)\n\x04meta\x18\x02 \x01(\x0b\x32\x1b.feast.core.FeatureViewMeta\"\x8d\x05\n\x0f\x46\x65\x61tureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x10\n\x08\x65ntities\x18\x03 \x03(\t\x12+\n\x08\x66\x65\x61tures\x18\x04 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x33\n\x04tags\x18\x05 \x03(\x0b\x32%.feast.core.FeatureViewSpec.TagsEntry\x12&\n\x03ttl\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12,\n\x0c\x62\x61tch_source\x18\x07 \x01(\x0b\x32\x16.feast.core.DataSource\x12\x0e\n\x06online\x18\x08 \x01(\x08\x12-\n\rstream_source\x18\t \x01(\x0b\x32\x16.feast.core.DataSource\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t\x12\r\n\x05owner\x18\x0b \x01(\t\x12\x31\n\x0e\x65ntity_columns\x18\x0c \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x0f\n\x07offline\x18\r \x01(\x08\x12\x31\n\x0csource_views\x18\x0e \x03(\x0b\x32\x1b.feast.core.FeatureViewSpec\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\x0f \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x0c\n\x04mode\x18\x10 \x01(\t\x12\x19\n\x11\x65nable_validation\x18\x11 \x01(\x08\x12\x0f\n\x07version\x18\x12 \x01(\t\x12\x0b\n\x03org\x18\x13 \x01(\t\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x80\x02\n\x0f\x46\x65\x61tureViewMeta\x12\x35\n\x11\x63reated_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_updated_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x19materialization_intervals\x18\x03 \x03(\x0b\x32#.feast.core.MaterializationInterval\x12\x1e\n\x16\x63urrent_version_number\x18\x04 \x01(\x05\x12\x12\n\nversion_id\x18\x05 \x01(\t\"w\n\x17MaterializationInterval\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"@\n\x0f\x46\x65\x61tureViewList\x12-\n\x0c\x66\x65\x61tureviews\x18\x01 \x03(\x0b\x32\x17.feast.core.FeatureViewBU\n\x10\x66\x65\x61st.proto.coreB\x10\x46\x65\x61tureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -32,13 +32,13 @@ _globals['_FEATUREVIEW']._serialized_start=197 _globals['_FEATUREVIEW']._serialized_end=296 _globals['_FEATUREVIEWSPEC']._serialized_start=299 - _globals['_FEATUREVIEWSPEC']._serialized_end=939 - _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_start=896 - _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_end=939 - _globals['_FEATUREVIEWMETA']._serialized_start=942 - _globals['_FEATUREVIEWMETA']._serialized_end=1198 - _globals['_MATERIALIZATIONINTERVAL']._serialized_start=1200 - _globals['_MATERIALIZATIONINTERVAL']._serialized_end=1319 - _globals['_FEATUREVIEWLIST']._serialized_start=1321 - _globals['_FEATUREVIEWLIST']._serialized_end=1385 + _globals['_FEATUREVIEWSPEC']._serialized_end=952 + _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_start=909 + _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_end=952 + _globals['_FEATUREVIEWMETA']._serialized_start=955 + _globals['_FEATUREVIEWMETA']._serialized_end=1211 + _globals['_MATERIALIZATIONINTERVAL']._serialized_start=1213 + _globals['_MATERIALIZATIONINTERVAL']._serialized_end=1332 + _globals['_FEATUREVIEWLIST']._serialized_start=1334 + _globals['_FEATUREVIEWLIST']._serialized_end=1398 # @@protoc_insertion_point(module_scope) diff --git a/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi index a62e275260f..575b4dfedb1 100644 --- a/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi @@ -16,234 +16,269 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> global___FeatureViewMeta: + + @_builtins.property + def meta(self) -> Global___FeatureViewMeta: """System-populated metadata for this feature view.""" + def __init__( self, *, - spec: global___FeatureViewSpec | None = ..., - meta: global___FeatureViewMeta | None = ..., + spec: Global___FeatureViewSpec | None = ..., + meta: Global___FeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureView = FeatureView +Global___FeatureView: _TypeAlias = FeatureView # noqa: Y015 -class FeatureViewSpec(google.protobuf.message.Message): - """Next available id: 19 +@_typing.final +class FeatureViewSpec(_message.Message): + """Next available id: 20 TODO(adchia): refactor common fields from this and ODFV into separate metadata proto """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - ONLINE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - OFFLINE_FIELD_NUMBER: builtins.int - SOURCE_VIEWS_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - ENABLE_VALIDATION_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + TTL_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + ONLINE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + OFFLINE_FIELD_NUMBER: _builtins.int + SOURCE_VIEWS_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + ENABLE_VALIDATION_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + online: _builtins.bool + """Whether these features should be served online or not + This is also used to determine whether the features should be written to the online store + """ + description: _builtins.str + """Description of the feature view.""" + owner: _builtins.str + """Owner of the feature view.""" + offline: _builtins.bool + """Whether these features should be written to the offline store""" + mode: _builtins.str + """The transformation mode (e.g., "python", "pandas", "spark", "sql", "ray")""" + enable_validation: _builtins.bool + """Whether schema validation is enabled during materialization""" + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this feature view (e.g. "ads", "search").""" + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def ttl(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def ttl(self) -> _duration_pb2.Duration: """Features in this feature view can only be retrieved from online serving younger than ttl. Ttl is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside ttl will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data. Optional: if not set, the feature view has no associated batch data source (e.g. purely derived views). """ - online: builtins.bool - """Whether these features should be served online or not - This is also used to determine whether the features should be written to the online store - """ - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data. Optional: only required for streaming feature views. """ - description: builtins.str - """Description of the feature view.""" - owner: builtins.str - """Owner of the feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - offline: builtins.bool - """Whether these features should be written to the offline store""" - @property - def source_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewSpec]: ... - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + def source_views(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewSpec]: ... + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Feature transformation for batch feature views""" - mode: builtins.str - """The transformation mode (e.g., "python", "pandas", "spark", "sql", "ray")""" - enable_validation: builtins.bool - """Whether schema validation is enabled during materialization""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ttl: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - online: builtins.bool = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - offline: builtins.bool = ..., - source_views: collections.abc.Iterable[global___FeatureViewSpec] | None = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - mode: builtins.str = ..., - enable_validation: builtins.bool = ..., - version: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ttl: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + online: _builtins.bool = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + offline: _builtins.bool = ..., + source_views: _abc.Iterable[Global___FeatureViewSpec] | None = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + mode: _builtins.str = ..., + enable_validation: _builtins.bool = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "ttl", b"ttl"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "description", b"description", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "offline", b"offline", "online", b"online", "owner", b"owner", "project", b"project", "source_views", b"source_views", "stream_source", b"stream_source", "tags", b"tags", "ttl", b"ttl", "version", b"version"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "ttl", b"ttl"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "description", b"description", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "offline", b"offline", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "source_views", b"source_views", "stream_source", b"stream_source", "tags", b"tags", "ttl", b"ttl", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewSpec = FeatureViewSpec +Global___FeatureViewSpec: _TypeAlias = FeatureViewSpec # noqa: Y015 -class FeatureViewMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - MATERIALIZATION_INTERVALS_FIELD_NUMBER: builtins.int - CURRENT_VERSION_NUMBER_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + MATERIALIZATION_INTERVALS_FIELD_NUMBER: _builtins.int + CURRENT_VERSION_NUMBER_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + current_version_number: _builtins.int + """The current version number of this feature view in the version history.""" + version_id: _builtins.str + """Auto-generated UUID identifying this specific version.""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature View is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature View is last updated""" - @property - def materialization_intervals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MaterializationInterval]: + + @_builtins.property + def materialization_intervals(self) -> _containers.RepeatedCompositeFieldContainer[Global___MaterializationInterval]: """List of pairs (start_time, end_time) for which this feature view has been materialized.""" - current_version_number: builtins.int - """The current version number of this feature view in the version history.""" - version_id: builtins.str - """Auto-generated UUID identifying this specific version.""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - materialization_intervals: collections.abc.Iterable[global___MaterializationInterval] | None = ..., - current_version_number: builtins.int = ..., - version_id: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + materialization_intervals: _abc.Iterable[Global___MaterializationInterval] | None = ..., + current_version_number: _builtins.int = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "materialization_intervals", b"materialization_intervals", "version_id", b"version_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "materialization_intervals", b"materialization_intervals", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewMeta = FeatureViewMeta +Global___FeatureViewMeta: _TypeAlias = FeatureViewMeta # noqa: Y015 -class MaterializationInterval(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class MaterializationInterval(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - START_TIME_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + START_TIME_FIELD_NUMBER: _builtins.int + END_TIME_FIELD_NUMBER: _builtins.int + @_builtins.property + def start_time(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def end_time(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + start_time: _timestamp_pb2.Timestamp | None = ..., + end_time: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "start_time", b"start_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "start_time", b"start_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___MaterializationInterval = MaterializationInterval +Global___MaterializationInterval: _TypeAlias = MaterializationInterval # noqa: Y015 -class FeatureViewList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATUREVIEWS_FIELD_NUMBER: builtins.int - @property - def featureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureView]: ... + FEATUREVIEWS_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureView]: ... def __init__( self, *, - featureviews: collections.abc.Iterable[global___FeatureView] | None = ..., + featureviews: _abc.Iterable[Global___FeatureView] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureviews", b"featureviews"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureviews", b"featureviews"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewList = FeatureViewList +Global___FeatureViewList: _TypeAlias = FeatureViewList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi index f2e8d57c2e4..518b1766141 100644 --- a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi @@ -16,72 +16,79 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureSpecV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureSpecV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - VALUE_TYPE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - VECTOR_INDEX_FIELD_NUMBER: builtins.int - VECTOR_SEARCH_METRIC_FIELD_NUMBER: builtins.int - VECTOR_LENGTH_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VALUE_TYPE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + VECTOR_INDEX_FIELD_NUMBER: _builtins.int + VECTOR_SEARCH_METRIC_FIELD_NUMBER: _builtins.int + VECTOR_LENGTH_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature. Not updatable.""" - value_type: _feast_types_Value_pb2.ValueType.Enum.ValueType + value_type: _Value_pb2.ValueType.Enum.ValueType """Value type of the feature. Not updatable.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Tags for user defined metadata on a feature""" - description: builtins.str + description: _builtins.str """Description of the feature.""" - vector_index: builtins.bool + vector_index: _builtins.bool """Field indicating the vector will be indexed for vector similarity search""" - vector_search_metric: builtins.str + vector_search_metric: _builtins.str """Metric used for vector similarity search.""" - vector_length: builtins.int + vector_length: _builtins.int """Field indicating the vector length""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Tags for user defined metadata on a feature""" + def __init__( self, *, - name: builtins.str = ..., - value_type: _feast_types_Value_pb2.ValueType.Enum.ValueType = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., - vector_index: builtins.bool = ..., - vector_search_metric: builtins.str = ..., - vector_length: builtins.int = ..., + name: _builtins.str = ..., + value_type: _Value_pb2.ValueType.Enum.ValueType = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., + vector_index: _builtins.bool = ..., + vector_search_metric: _builtins.str = ..., + vector_length: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "tags", b"tags", "value_type", b"value_type", "vector_index", b"vector_index", "vector_length", b"vector_length", "vector_search_metric", b"vector_search_metric"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "tags", b"tags", "value_type", b"value_type", "vector_index", b"vector_index", "vector_length", b"vector_length", "vector_search_metric", b"vector_search_metric"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureSpecV2 = FeatureSpecV2 +Global___FeatureSpecV2: _TypeAlias = FeatureSpecV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi index f0a704c604a..cc9a4193181 100644 --- a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi @@ -16,81 +16,93 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import feast.core.DatastoreTable_pb2 -import feast.core.SqliteTable_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import DatastoreTable_pb2 as _DatastoreTable_pb2 +from feast.core import SqliteTable_pb2 as _SqliteTable_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Infra(google.protobuf.message.Message): +@_typing.final +class Infra(_message.Message): """Represents a set of infrastructure objects managed by Feast""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - INFRA_OBJECTS_FIELD_NUMBER: builtins.int - @property - def infra_objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InfraObject]: + INFRA_OBJECTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def infra_objects(self) -> _containers.RepeatedCompositeFieldContainer[Global___InfraObject]: """List of infrastructure objects managed by Feast""" + def __init__( self, *, - infra_objects: collections.abc.Iterable[global___InfraObject] | None = ..., + infra_objects: _abc.Iterable[Global___InfraObject] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["infra_objects", b"infra_objects"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["infra_objects", b"infra_objects"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Infra = Infra +Global___Infra: _TypeAlias = Infra # noqa: Y015 -class InfraObject(google.protobuf.message.Message): +@_typing.final +class InfraObject(_message.Message): """Represents a single infrastructure object managed by Feast""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class CustomInfra(google.protobuf.message.Message): + @_typing.final + class CustomInfra(_message.Message): """Allows for custom infra objects to be added""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FIELD_FIELD_NUMBER: builtins.int - field: builtins.bytes + FIELD_FIELD_NUMBER: _builtins.int + field: _builtins.bytes def __init__( self, *, - field: builtins.bytes = ..., + field: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["field", b"field"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["field", b"field"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - INFRA_OBJECT_CLASS_TYPE_FIELD_NUMBER: builtins.int - DATASTORE_TABLE_FIELD_NUMBER: builtins.int - SQLITE_TABLE_FIELD_NUMBER: builtins.int - CUSTOM_INFRA_FIELD_NUMBER: builtins.int - infra_object_class_type: builtins.str + INFRA_OBJECT_CLASS_TYPE_FIELD_NUMBER: _builtins.int + DATASTORE_TABLE_FIELD_NUMBER: _builtins.int + SQLITE_TABLE_FIELD_NUMBER: _builtins.int + CUSTOM_INFRA_FIELD_NUMBER: _builtins.int + infra_object_class_type: _builtins.str """Represents the Python class for the infrastructure object""" - @property - def datastore_table(self) -> feast.core.DatastoreTable_pb2.DatastoreTable: ... - @property - def sqlite_table(self) -> feast.core.SqliteTable_pb2.SqliteTable: ... - @property - def custom_infra(self) -> global___InfraObject.CustomInfra: ... + @_builtins.property + def datastore_table(self) -> _DatastoreTable_pb2.DatastoreTable: ... + @_builtins.property + def sqlite_table(self) -> _SqliteTable_pb2.SqliteTable: ... + @_builtins.property + def custom_infra(self) -> Global___InfraObject.CustomInfra: ... def __init__( self, *, - infra_object_class_type: builtins.str = ..., - datastore_table: feast.core.DatastoreTable_pb2.DatastoreTable | None = ..., - sqlite_table: feast.core.SqliteTable_pb2.SqliteTable | None = ..., - custom_infra: global___InfraObject.CustomInfra | None = ..., + infra_object_class_type: _builtins.str = ..., + datastore_table: _DatastoreTable_pb2.DatastoreTable | None = ..., + sqlite_table: _SqliteTable_pb2.SqliteTable | None = ..., + custom_infra: Global___InfraObject.CustomInfra | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "sqlite_table", b"sqlite_table"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "infra_object_class_type", b"infra_object_class_type", "sqlite_table", b"sqlite_table"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["infra_object", b"infra_object"]) -> typing_extensions.Literal["datastore_table", "sqlite_table", "custom_infra"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "sqlite_table", b"sqlite_table"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "infra_object_class_type", b"infra_object_class_type", "sqlite_table", b"sqlite_table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_infra_object: _TypeAlias = _typing.Literal["datastore_table", "sqlite_table", "custom_infra"] # noqa: Y015 + _WhichOneofArgType_infra_object: _TypeAlias = _typing.Literal["infra_object", b"infra_object"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_infra_object) -> _WhichOneofReturnType_infra_object | None: ... -global___InfraObject = InfraObject +Global___InfraObject: _TypeAlias = InfraObject # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py index 629c02c3a5f..313d93ca38d 100644 --- a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py +++ b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py @@ -21,7 +21,7 @@ from feast.protos.feast.core import Aggregation_pb2 as feast_dot_core_dot_Aggregation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$feast/core/OnDemandFeatureView.proto\x12\nfeast.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1c\x66\x65\x61st/core/FeatureView.proto\x1a&feast/core/FeatureViewProjection.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\x1a\x1c\x66\x65\x61st/core/Aggregation.proto\"{\n\x13OnDemandFeatureView\x12\x31\n\x04spec\x18\x01 \x01(\x0b\x32#.feast.core.OnDemandFeatureViewSpec\x12\x31\n\x04meta\x18\x02 \x01(\x0b\x32#.feast.core.OnDemandFeatureViewMeta\"\xd0\x05\n\x17OnDemandFeatureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12+\n\x08\x66\x65\x61tures\x18\x03 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x41\n\x07sources\x18\x04 \x03(\x0b\x32\x30.feast.core.OnDemandFeatureViewSpec.SourcesEntry\x12\x42\n\x15user_defined_function\x18\x05 \x01(\x0b\x32\x1f.feast.core.UserDefinedFunctionB\x02\x18\x01\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\n \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12;\n\x04tags\x18\x07 \x03(\x0b\x32-.feast.core.OnDemandFeatureViewSpec.TagsEntry\x12\r\n\x05owner\x18\x08 \x01(\t\x12\x0c\n\x04mode\x18\x0b \x01(\t\x12\x1d\n\x15write_to_online_store\x18\x0c \x01(\x08\x12\x10\n\x08\x65ntities\x18\r \x03(\t\x12\x31\n\x0e\x65ntity_columns\x18\x0e \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x11\n\tsingleton\x18\x0f \x01(\x08\x12-\n\x0c\x61ggregations\x18\x10 \x03(\x0b\x32\x17.feast.core.Aggregation\x12\x0f\n\x07version\x18\x11 \x01(\t\x1aJ\n\x0cSourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.feast.core.OnDemandSource:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc0\x01\n\x17OnDemandFeatureViewMeta\x12\x35\n\x11\x63reated_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_updated_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16\x63urrent_version_number\x18\x03 \x01(\x05\x12\x12\n\nversion_id\x18\x04 \x01(\t\"\xc8\x01\n\x0eOnDemandSource\x12/\n\x0c\x66\x65\x61ture_view\x18\x01 \x01(\x0b\x32\x17.feast.core.FeatureViewH\x00\x12\x44\n\x17\x66\x65\x61ture_view_projection\x18\x03 \x01(\x0b\x32!.feast.core.FeatureViewProjectionH\x00\x12\x35\n\x13request_data_source\x18\x02 \x01(\x0b\x32\x16.feast.core.DataSourceH\x00\x42\x08\n\x06source\"H\n\x13UserDefinedFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\x0c\x12\x11\n\tbody_text\x18\x03 \x01(\t:\x02\x18\x01\"X\n\x17OnDemandFeatureViewList\x12=\n\x14ondemandfeatureviews\x18\x01 \x03(\x0b\x32\x1f.feast.core.OnDemandFeatureViewB]\n\x10\x66\x65\x61st.proto.coreB\x18OnDemandFeatureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$feast/core/OnDemandFeatureView.proto\x12\nfeast.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1c\x66\x65\x61st/core/FeatureView.proto\x1a&feast/core/FeatureViewProjection.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\x1a\x1c\x66\x65\x61st/core/Aggregation.proto\"{\n\x13OnDemandFeatureView\x12\x31\n\x04spec\x18\x01 \x01(\x0b\x32#.feast.core.OnDemandFeatureViewSpec\x12\x31\n\x04meta\x18\x02 \x01(\x0b\x32#.feast.core.OnDemandFeatureViewMeta\"\xdd\x05\n\x17OnDemandFeatureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12+\n\x08\x66\x65\x61tures\x18\x03 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x41\n\x07sources\x18\x04 \x03(\x0b\x32\x30.feast.core.OnDemandFeatureViewSpec.SourcesEntry\x12\x42\n\x15user_defined_function\x18\x05 \x01(\x0b\x32\x1f.feast.core.UserDefinedFunctionB\x02\x18\x01\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\n \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12;\n\x04tags\x18\x07 \x03(\x0b\x32-.feast.core.OnDemandFeatureViewSpec.TagsEntry\x12\r\n\x05owner\x18\x08 \x01(\t\x12\x0c\n\x04mode\x18\x0b \x01(\t\x12\x1d\n\x15write_to_online_store\x18\x0c \x01(\x08\x12\x10\n\x08\x65ntities\x18\r \x03(\t\x12\x31\n\x0e\x65ntity_columns\x18\x0e \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x11\n\tsingleton\x18\x0f \x01(\x08\x12-\n\x0c\x61ggregations\x18\x10 \x03(\x0b\x32\x17.feast.core.Aggregation\x12\x0f\n\x07version\x18\x11 \x01(\t\x12\x0b\n\x03org\x18\x12 \x01(\t\x1aJ\n\x0cSourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.feast.core.OnDemandSource:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc0\x01\n\x17OnDemandFeatureViewMeta\x12\x35\n\x11\x63reated_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_updated_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16\x63urrent_version_number\x18\x03 \x01(\x05\x12\x12\n\nversion_id\x18\x04 \x01(\t\"\xc8\x01\n\x0eOnDemandSource\x12/\n\x0c\x66\x65\x61ture_view\x18\x01 \x01(\x0b\x32\x17.feast.core.FeatureViewH\x00\x12\x44\n\x17\x66\x65\x61ture_view_projection\x18\x03 \x01(\x0b\x32!.feast.core.FeatureViewProjectionH\x00\x12\x35\n\x13request_data_source\x18\x02 \x01(\x0b\x32\x16.feast.core.DataSourceH\x00\x42\x08\n\x06source\"H\n\x13UserDefinedFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\x0c\x12\x11\n\tbody_text\x18\x03 \x01(\t:\x02\x18\x01\"X\n\x17OnDemandFeatureViewList\x12=\n\x14ondemandfeatureviews\x18\x01 \x03(\x0b\x32\x1f.feast.core.OnDemandFeatureViewB]\n\x10\x66\x65\x61st.proto.coreB\x18OnDemandFeatureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -40,17 +40,17 @@ _globals['_ONDEMANDFEATUREVIEW']._serialized_start=273 _globals['_ONDEMANDFEATUREVIEW']._serialized_end=396 _globals['_ONDEMANDFEATUREVIEWSPEC']._serialized_start=399 - _globals['_ONDEMANDFEATUREVIEWSPEC']._serialized_end=1119 - _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_start=1000 - _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_end=1074 - _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1076 - _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1119 - _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_start=1122 - _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_end=1314 - _globals['_ONDEMANDSOURCE']._serialized_start=1317 - _globals['_ONDEMANDSOURCE']._serialized_end=1517 - _globals['_USERDEFINEDFUNCTION']._serialized_start=1519 - _globals['_USERDEFINEDFUNCTION']._serialized_end=1591 - _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_start=1593 - _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_end=1681 + _globals['_ONDEMANDFEATUREVIEWSPEC']._serialized_end=1132 + _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_start=1013 + _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_end=1087 + _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1089 + _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1132 + _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_start=1135 + _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_end=1327 + _globals['_ONDEMANDSOURCE']._serialized_start=1330 + _globals['_ONDEMANDSOURCE']._serialized_end=1530 + _globals['_USERDEFINEDFUNCTION']._serialized_start=1532 + _globals['_USERDEFINEDFUNCTION']._serialized_end=1604 + _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_start=1606 + _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_end=1694 # @@protoc_insertion_point(module_scope) diff --git a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi index 42fd91f7725..289ffd07de3 100644 --- a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi @@ -16,253 +16,299 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.Aggregation_pb2 -import feast.core.DataSource_pb2 -import feast.core.FeatureViewProjection_pb2 -import feast.core.FeatureView_pb2 -import feast.core.Feature_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import Aggregation_pb2 as _Aggregation_pb2 +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import FeatureViewProjection_pb2 as _FeatureViewProjection_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class OnDemandFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___OnDemandFeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___OnDemandFeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> global___OnDemandFeatureViewMeta: ... + + @_builtins.property + def meta(self) -> Global___OnDemandFeatureViewMeta: ... def __init__( self, *, - spec: global___OnDemandFeatureViewSpec | None = ..., - meta: global___OnDemandFeatureViewMeta | None = ..., + spec: Global___OnDemandFeatureViewSpec | None = ..., + meta: Global___OnDemandFeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureView = OnDemandFeatureView +Global___OnDemandFeatureView: _TypeAlias = OnDemandFeatureView # noqa: Y015 -class OnDemandFeatureViewSpec(google.protobuf.message.Message): - """Next available id: 18""" +@_typing.final +class OnDemandFeatureViewSpec(_message.Message): + """Next available id: 19""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class SourcesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class SourcesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> global___OnDemandSource: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> Global___OnDemandSource: ... def __init__( self, *, - key: builtins.str = ..., - value: global___OnDemandSource | None = ..., + key: _builtins.str = ..., + value: Global___OnDemandSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - SOURCES_FIELD_NUMBER: builtins.int - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - WRITE_TO_ONLINE_STORE_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - SINGLETON_FIELD_NUMBER: builtins.int - AGGREGATIONS_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + SOURCES_FIELD_NUMBER: _builtins.int + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + WRITE_TO_ONLINE_STORE_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + SINGLETON_FIELD_NUMBER: _builtins.int + AGGREGATIONS_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + description: _builtins.str + """Description of the on demand feature view.""" + owner: _builtins.str + """Owner of the on demand feature view.""" + mode: _builtins.str + write_to_online_store: _builtins.bool + singleton: _builtins.bool + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this feature view (e.g. "ads", "search").""" + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature view.""" - @property - def sources(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___OnDemandSource]: + + @_builtins.property + def sources(self) -> _containers.MessageMap[_builtins.str, Global___OnDemandSource]: """Map of sources for this feature view.""" - @property - def user_defined_function(self) -> global___UserDefinedFunction: ... - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def user_defined_function(self) -> Global___UserDefinedFunction: ... + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - description: builtins.str - """Description of the on demand feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata.""" - owner: builtins.str - """Owner of the on demand feature view.""" - mode: builtins.str - write_to_online_store: builtins.bool - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - singleton: builtins.bool - @property - def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: + + @_builtins.property + def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: """Aggregation definitions""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - sources: collections.abc.Mapping[builtins.str, global___OnDemandSource] | None = ..., - user_defined_function: global___UserDefinedFunction | None = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - mode: builtins.str = ..., - write_to_online_store: builtins.bool = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - singleton: builtins.bool = ..., - aggregations: collections.abc.Iterable[feast.core.Aggregation_pb2.Aggregation] | None = ..., - version: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + sources: _abc.Mapping[_builtins.str, Global___OnDemandSource] | None = ..., + user_defined_function: Global___UserDefinedFunction | None = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + mode: _builtins.str = ..., + write_to_online_store: _builtins.bool = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + singleton: _builtins.bool = ..., + aggregations: _abc.Iterable[_Aggregation_pb2.Aggregation] | None = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_transformation", b"feature_transformation", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aggregations", b"aggregations", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "version", b"version", "write_to_online_store", b"write_to_online_store"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_transformation", b"feature_transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["aggregations", b"aggregations", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "org", b"org", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "version", b"version", "write_to_online_store", b"write_to_online_store"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureViewSpec = OnDemandFeatureViewSpec +Global___OnDemandFeatureViewSpec: _TypeAlias = OnDemandFeatureViewSpec # noqa: Y015 -class OnDemandFeatureViewMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureViewMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - CURRENT_VERSION_NUMBER_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature View is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature View is last updated""" - current_version_number: builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + CURRENT_VERSION_NUMBER_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + current_version_number: _builtins.int """The current version number of this feature view in the version history.""" - version_id: builtins.str + version_id: _builtins.str """Auto-generated UUID identifying this specific version.""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature View is created""" + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature View is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - current_version_number: builtins.int = ..., - version_id: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + current_version_number: _builtins.int = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "version_id", b"version_id"]) -> None: ... - -global___OnDemandFeatureViewMeta = OnDemandFeatureViewMeta - -class OnDemandSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURE_VIEW_FIELD_NUMBER: builtins.int - FEATURE_VIEW_PROJECTION_FIELD_NUMBER: builtins.int - REQUEST_DATA_SOURCE_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def feature_view_projection(self) -> feast.core.FeatureViewProjection_pb2.FeatureViewProjection: ... - @property - def request_data_source(self) -> feast.core.DataSource_pb2.DataSource: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___OnDemandFeatureViewMeta: _TypeAlias = OnDemandFeatureViewMeta # noqa: Y015 + +@_typing.final +class OnDemandSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_PROJECTION_FIELD_NUMBER: _builtins.int + REQUEST_DATA_SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def feature_view_projection(self) -> _FeatureViewProjection_pb2.FeatureViewProjection: ... + @_builtins.property + def request_data_source(self) -> _DataSource_pb2.DataSource: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - feature_view_projection: feast.core.FeatureViewProjection_pb2.FeatureViewProjection | None = ..., - request_data_source: feast.core.DataSource_pb2.DataSource | None = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + feature_view_projection: _FeatureViewProjection_pb2.FeatureViewProjection | None = ..., + request_data_source: _DataSource_pb2.DataSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["source", b"source"]) -> typing_extensions.Literal["feature_view", "feature_view_projection", "request_data_source"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_source: _TypeAlias = _typing.Literal["feature_view", "feature_view_projection", "request_data_source"] # noqa: Y015 + _WhichOneofArgType_source: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_source) -> _WhichOneofReturnType_source | None: ... -global___OnDemandSource = OnDemandSource +Global___OnDemandSource: _TypeAlias = OnDemandSource # noqa: Y015 -class UserDefinedFunction(google.protobuf.message.Message): +@_deprecated("""This message has been marked as deprecated using proto message options.""") +@_typing.final +class UserDefinedFunction(_message.Message): """Serialized representation of python function.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - BODY_FIELD_NUMBER: builtins.int - BODY_TEXT_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + BODY_FIELD_NUMBER: _builtins.int + BODY_TEXT_FIELD_NUMBER: _builtins.int + name: _builtins.str """The function name""" - body: builtins.bytes + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" - body_text: builtins.str + body_text: _builtins.str """The string representation of the udf""" def __init__( self, *, - name: builtins.str = ..., - body: builtins.bytes = ..., - body_text: builtins.str = ..., + name: _builtins.str = ..., + body: _builtins.bytes = ..., + body_text: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "body_text", b"body_text", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UserDefinedFunction = UserDefinedFunction +Global___UserDefinedFunction: _TypeAlias = UserDefinedFunction # noqa: Y015 -class OnDemandFeatureViewList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureViewList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ONDEMANDFEATUREVIEWS_FIELD_NUMBER: builtins.int - @property - def ondemandfeatureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnDemandFeatureView]: ... + ONDEMANDFEATUREVIEWS_FIELD_NUMBER: _builtins.int + @_builtins.property + def ondemandfeatureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___OnDemandFeatureView]: ... def __init__( self, *, - ondemandfeatureviews: collections.abc.Iterable[global___OnDemandFeatureView] | None = ..., + ondemandfeatureviews: _abc.Iterable[Global___OnDemandFeatureView] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ondemandfeatureviews", b"ondemandfeatureviews"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ondemandfeatureviews", b"ondemandfeatureviews"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureViewList = OnDemandFeatureViewList +Global___OnDemandFeatureViewList: _TypeAlias = OnDemandFeatureViewList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi index b2387d29465..4acc8ac3e1e 100644 --- a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi @@ -2,55 +2,62 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.Policy_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import Policy_pb2 as _Policy_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Permission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Permission(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___PermissionSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___PermissionSpec: """User-specified specifications of this permission.""" - @property - def meta(self) -> global___PermissionMeta: + + @_builtins.property + def meta(self) -> Global___PermissionMeta: """System-populated metadata for this permission.""" + def __init__( self, *, - spec: global___PermissionSpec | None = ..., - meta: global___PermissionMeta | None = ..., + spec: Global___PermissionSpec | None = ..., + meta: Global___PermissionMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Permission = Permission +Global___Permission: _TypeAlias = Permission # noqa: Y015 -class PermissionSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PermissionSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _AuthzedAction: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _AuthzedActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _AuthzedActionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: PermissionSpec._AuthzedAction.ValueType # 0 DESCRIBE: PermissionSpec._AuthzedAction.ValueType # 1 UPDATE: PermissionSpec._AuthzedAction.ValueType # 2 @@ -71,11 +78,11 @@ class PermissionSpec(google.protobuf.message.Message): WRITE_OFFLINE: PermissionSpec.AuthzedAction.ValueType # 7 class _Type: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor FEATURE_VIEW: PermissionSpec._Type.ValueType # 0 ON_DEMAND_FEATURE_VIEW: PermissionSpec._Type.ValueType # 1 BATCH_FEATURE_VIEW: PermissionSpec._Type.ValueType # 2 @@ -101,96 +108,108 @@ class PermissionSpec(google.protobuf.message.Message): PERMISSION: PermissionSpec.Type.ValueType # 9 PROJECT: PermissionSpec.Type.ValueType # 10 - class RequiredTagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RequiredTagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - TYPES_FIELD_NUMBER: builtins.int - NAME_PATTERNS_FIELD_NUMBER: builtins.int - REQUIRED_TAGS_FIELD_NUMBER: builtins.int - ACTIONS_FIELD_NUMBER: builtins.int - POLICY_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + TYPES_FIELD_NUMBER: _builtins.int + NAME_PATTERNS_FIELD_NUMBER: _builtins.int + REQUIRED_TAGS_FIELD_NUMBER: _builtins.int + ACTIONS_FIELD_NUMBER: _builtins.int + POLICY_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the permission. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project.""" - @property - def types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PermissionSpec.Type.ValueType]: ... - @property - def name_patterns(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def required_tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def actions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PermissionSpec.AuthzedAction.ValueType]: + @_builtins.property + def types(self) -> _containers.RepeatedScalarFieldContainer[Global___PermissionSpec.Type.ValueType]: ... + @_builtins.property + def name_patterns(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def required_tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def actions(self) -> _containers.RepeatedScalarFieldContainer[Global___PermissionSpec.AuthzedAction.ValueType]: """List of actions.""" - @property - def policy(self) -> feast.core.Policy_pb2.Policy: + + @_builtins.property + def policy(self) -> _Policy_pb2.Policy: """the policy.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - types: collections.abc.Iterable[global___PermissionSpec.Type.ValueType] | None = ..., - name_patterns: collections.abc.Iterable[builtins.str] | None = ..., - required_tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - actions: collections.abc.Iterable[global___PermissionSpec.AuthzedAction.ValueType] | None = ..., - policy: feast.core.Policy_pb2.Policy | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + types: _abc.Iterable[Global___PermissionSpec.Type.ValueType] | None = ..., + name_patterns: _abc.Iterable[_builtins.str] | None = ..., + required_tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + actions: _abc.Iterable[Global___PermissionSpec.AuthzedAction.ValueType] | None = ..., + policy: _Policy_pb2.Policy | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["policy", b"policy"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["actions", b"actions", "name", b"name", "name_patterns", b"name_patterns", "policy", b"policy", "project", b"project", "required_tags", b"required_tags", "tags", b"tags", "types", b"types"]) -> None: ... - -global___PermissionSpec = PermissionSpec - -class PermissionMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["policy", b"policy"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["actions", b"actions", "name", b"name", "name_patterns", b"name_patterns", "policy", b"policy", "project", b"project", "required_tags", b"required_tags", "tags", b"tags", "types", b"types"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PermissionSpec: _TypeAlias = PermissionSpec # noqa: Y015 + +@_typing.final +class PermissionMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PermissionMeta = PermissionMeta +Global___PermissionMeta: _TypeAlias = PermissionMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi index 8410e396586..6c8b6e49206 100644 --- a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi @@ -2,122 +2,142 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Policy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Policy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ROLE_BASED_POLICY_FIELD_NUMBER: builtins.int - GROUP_BASED_POLICY_FIELD_NUMBER: builtins.int - NAMESPACE_BASED_POLICY_FIELD_NUMBER: builtins.int - COMBINED_GROUP_NAMESPACE_POLICY_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ROLE_BASED_POLICY_FIELD_NUMBER: _builtins.int + GROUP_BASED_POLICY_FIELD_NUMBER: _builtins.int + NAMESPACE_BASED_POLICY_FIELD_NUMBER: _builtins.int + COMBINED_GROUP_NAMESPACE_POLICY_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the policy.""" - project: builtins.str + project: _builtins.str """Name of Feast project.""" - @property - def role_based_policy(self) -> global___RoleBasedPolicy: ... - @property - def group_based_policy(self) -> global___GroupBasedPolicy: ... - @property - def namespace_based_policy(self) -> global___NamespaceBasedPolicy: ... - @property - def combined_group_namespace_policy(self) -> global___CombinedGroupNamespacePolicy: ... + @_builtins.property + def role_based_policy(self) -> Global___RoleBasedPolicy: ... + @_builtins.property + def group_based_policy(self) -> Global___GroupBasedPolicy: ... + @_builtins.property + def namespace_based_policy(self) -> Global___NamespaceBasedPolicy: ... + @_builtins.property + def combined_group_namespace_policy(self) -> Global___CombinedGroupNamespacePolicy: ... def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - role_based_policy: global___RoleBasedPolicy | None = ..., - group_based_policy: global___GroupBasedPolicy | None = ..., - namespace_based_policy: global___NamespaceBasedPolicy | None = ..., - combined_group_namespace_policy: global___CombinedGroupNamespacePolicy | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + role_based_policy: Global___RoleBasedPolicy | None = ..., + group_based_policy: Global___GroupBasedPolicy | None = ..., + namespace_based_policy: Global___NamespaceBasedPolicy | None = ..., + combined_group_namespace_policy: Global___CombinedGroupNamespacePolicy | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "role_based_policy", b"role_based_policy"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "name", b"name", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "project", b"project", "role_based_policy", b"role_based_policy"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["policy_type", b"policy_type"]) -> typing_extensions.Literal["role_based_policy", "group_based_policy", "namespace_based_policy", "combined_group_namespace_policy"] | None: ... - -global___Policy = Policy - -class RoleBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROLES_FIELD_NUMBER: builtins.int - @property - def roles(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + _HasFieldArgType: _TypeAlias = _typing.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "role_based_policy", b"role_based_policy"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "name", b"name", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "project", b"project", "role_based_policy", b"role_based_policy"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_policy_type: _TypeAlias = _typing.Literal["role_based_policy", "group_based_policy", "namespace_based_policy", "combined_group_namespace_policy"] # noqa: Y015 + _WhichOneofArgType_policy_type: _TypeAlias = _typing.Literal["policy_type", b"policy_type"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_policy_type) -> _WhichOneofReturnType_policy_type | None: ... + +Global___Policy: _TypeAlias = Policy # noqa: Y015 + +@_typing.final +class RoleBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROLES_FIELD_NUMBER: _builtins.int + @_builtins.property + def roles(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of roles in this policy.""" + def __init__( self, *, - roles: collections.abc.Iterable[builtins.str] | None = ..., + roles: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["roles", b"roles"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["roles", b"roles"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RoleBasedPolicy = RoleBasedPolicy +Global___RoleBasedPolicy: _TypeAlias = RoleBasedPolicy # noqa: Y015 -class GroupBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GroupBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - GROUPS_FIELD_NUMBER: builtins.int - @property - def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + GROUPS_FIELD_NUMBER: _builtins.int + @_builtins.property + def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of groups in this policy.""" + def __init__( self, *, - groups: collections.abc.Iterable[builtins.str] | None = ..., + groups: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GroupBasedPolicy = GroupBasedPolicy +Global___GroupBasedPolicy: _TypeAlias = GroupBasedPolicy # noqa: Y015 -class NamespaceBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NamespaceBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAMESPACES_FIELD_NUMBER: builtins.int - @property - def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + NAMESPACES_FIELD_NUMBER: _builtins.int + @_builtins.property + def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of namespaces in this policy.""" + def __init__( self, *, - namespaces: collections.abc.Iterable[builtins.str] | None = ..., + namespaces: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["namespaces", b"namespaces"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["namespaces", b"namespaces"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___NamespaceBasedPolicy = NamespaceBasedPolicy +Global___NamespaceBasedPolicy: _TypeAlias = NamespaceBasedPolicy # noqa: Y015 -class CombinedGroupNamespacePolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CombinedGroupNamespacePolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - GROUPS_FIELD_NUMBER: builtins.int - NAMESPACES_FIELD_NUMBER: builtins.int - @property - def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + GROUPS_FIELD_NUMBER: _builtins.int + NAMESPACES_FIELD_NUMBER: _builtins.int + @_builtins.property + def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of groups in this policy.""" - @property - def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + + @_builtins.property + def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of namespaces in this policy.""" + def __init__( self, *, - groups: collections.abc.Iterable[builtins.str] | None = ..., - namespaces: collections.abc.Iterable[builtins.str] | None = ..., + groups: _abc.Iterable[_builtins.str] | None = ..., + namespaces: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "namespaces", b"namespaces"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups", "namespaces", b"namespaces"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___CombinedGroupNamespacePolicy = CombinedGroupNamespacePolicy +Global___CombinedGroupNamespacePolicy: _TypeAlias = CombinedGroupNamespacePolicy # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Project_pb2.pyi b/sdk/python/feast/protos/feast/core/Project_pb2.pyi index e3cce2ec425..d3844463544 100644 --- a/sdk/python/feast/protos/feast/core/Project_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Project_pb2.pyi @@ -16,104 +16,121 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Project(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Project(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___ProjectSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___ProjectSpec: """User-specified specifications of this entity.""" - @property - def meta(self) -> global___ProjectMeta: + + @_builtins.property + def meta(self) -> Global___ProjectMeta: """System-populated metadata for this entity.""" + def __init__( self, *, - spec: global___ProjectSpec | None = ..., - meta: global___ProjectMeta | None = ..., + spec: Global___ProjectSpec | None = ..., + meta: Global___ProjectMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Project = Project +Global___Project: _TypeAlias = Project # noqa: Y015 -class ProjectSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the Project""" - description: builtins.str + description: _builtins.str """Description of the Project""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """User defined metadata""" - owner: builtins.str + owner: _builtins.str """Owner of the Project""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., + name: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "owner", b"owner", "tags", b"tags"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "owner", b"owner", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectSpec = ProjectSpec +Global___ProjectSpec: _TypeAlias = ProjectSpec # noqa: Y015 -class ProjectMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when the Project is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when the Project is last updated with registry changes (Apply stage)""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectMeta = ProjectMeta +Global___ProjectMeta: _TypeAlias = ProjectMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi index 29bd76323e3..5aafdaf21fd 100644 --- a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi @@ -16,130 +16,144 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Entity_pb2 -import feast.core.FeatureService_pb2 -import feast.core.FeatureTable_pb2 -import feast.core.FeatureViewVersion_pb2 -import feast.core.FeatureView_pb2 -import feast.core.InfraObject_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Permission_pb2 -import feast.core.Project_pb2 -import feast.core.SavedDataset_pb2 -import feast.core.StreamFeatureView_pb2 -import feast.core.ValidationProfile_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Entity_pb2 as _Entity_pb2 +from feast.core import FeatureService_pb2 as _FeatureService_pb2 +from feast.core import FeatureTable_pb2 as _FeatureTable_pb2 +from feast.core import FeatureViewVersion_pb2 as _FeatureViewVersion_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import InfraObject_pb2 as _InfraObject_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Permission_pb2 as _Permission_pb2 +from feast.core import Project_pb2 as _Project_pb2 +from feast.core import SavedDataset_pb2 as _SavedDataset_pb2 +from feast.core import StreamFeatureView_pb2 as _StreamFeatureView_pb2 +from feast.core import ValidationProfile_pb2 as _ValidationProfile_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Registry(google.protobuf.message.Message): +@_typing.final +class Registry(_message.Message): """Next id: 19""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - FEATURE_TABLES_FIELD_NUMBER: builtins.int - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - DATA_SOURCES_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - FEATURE_SERVICES_FIELD_NUMBER: builtins.int - SAVED_DATASETS_FIELD_NUMBER: builtins.int - VALIDATION_REFERENCES_FIELD_NUMBER: builtins.int - INFRA_FIELD_NUMBER: builtins.int - PROJECT_METADATA_FIELD_NUMBER: builtins.int - REGISTRY_SCHEMA_VERSION_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - LAST_UPDATED_FIELD_NUMBER: builtins.int - PERMISSIONS_FIELD_NUMBER: builtins.int - PROJECTS_FIELD_NUMBER: builtins.int - FEATURE_VIEW_VERSION_HISTORY_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Entity_pb2.Entity]: ... - @property - def feature_tables(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureTable_pb2.FeatureTable]: ... - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureView_pb2.FeatureView]: ... - @property - def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.DataSource_pb2.DataSource]: ... - @property - def on_demand_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView]: ... - @property - def stream_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.StreamFeatureView_pb2.StreamFeatureView]: ... - @property - def feature_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureService_pb2.FeatureService]: ... - @property - def saved_datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.SavedDataset_pb2.SavedDataset]: ... - @property - def validation_references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.ValidationProfile_pb2.ValidationReference]: ... - @property - def infra(self) -> feast.core.InfraObject_pb2.Infra: ... - @property - def project_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProjectMetadata]: - """Tracking metadata of Feast by project""" - registry_schema_version: builtins.str + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURE_TABLES_FIELD_NUMBER: _builtins.int + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + DATA_SOURCES_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + FEATURE_SERVICES_FIELD_NUMBER: _builtins.int + SAVED_DATASETS_FIELD_NUMBER: _builtins.int + VALIDATION_REFERENCES_FIELD_NUMBER: _builtins.int + INFRA_FIELD_NUMBER: _builtins.int + PROJECT_METADATA_FIELD_NUMBER: _builtins.int + REGISTRY_SCHEMA_VERSION_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + LAST_UPDATED_FIELD_NUMBER: _builtins.int + PERMISSIONS_FIELD_NUMBER: _builtins.int + PROJECTS_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_VERSION_HISTORY_FIELD_NUMBER: _builtins.int + registry_schema_version: _builtins.str """to support migrations; incremented when schema is changed""" - version_id: builtins.str + version_id: _builtins.str """version id, random string generated on each update of the data; now used only for debugging purposes""" - @property - def last_updated(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Permission_pb2.Permission]: ... - @property - def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Project_pb2.Project]: ... - @property - def feature_view_version_history(self) -> feast.core.FeatureViewVersion_pb2.FeatureViewVersionHistory: ... + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[_Entity_pb2.Entity]: ... + @_builtins.property + def feature_tables(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureTable_pb2.FeatureTable]: ... + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureView_pb2.FeatureView]: ... + @_builtins.property + def data_sources(self) -> _containers.RepeatedCompositeFieldContainer[_DataSource_pb2.DataSource]: ... + @_builtins.property + def on_demand_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_OnDemandFeatureView_pb2.OnDemandFeatureView]: ... + @_builtins.property + def stream_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_StreamFeatureView_pb2.StreamFeatureView]: ... + @_builtins.property + def feature_services(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureService_pb2.FeatureService]: ... + @_builtins.property + def saved_datasets(self) -> _containers.RepeatedCompositeFieldContainer[_SavedDataset_pb2.SavedDataset]: ... + @_builtins.property + def validation_references(self) -> _containers.RepeatedCompositeFieldContainer[_ValidationProfile_pb2.ValidationReference]: ... + @_builtins.property + def infra(self) -> _InfraObject_pb2.Infra: ... + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def project_metadata(self) -> _containers.RepeatedCompositeFieldContainer[Global___ProjectMetadata]: + """Tracking metadata of Feast by project""" + + @_builtins.property + def last_updated(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[_Permission_pb2.Permission]: ... + @_builtins.property + def projects(self) -> _containers.RepeatedCompositeFieldContainer[_Project_pb2.Project]: ... + @_builtins.property + def feature_view_version_history(self) -> _FeatureViewVersion_pb2.FeatureViewVersionHistory: ... def __init__( self, *, - entities: collections.abc.Iterable[feast.core.Entity_pb2.Entity] | None = ..., - feature_tables: collections.abc.Iterable[feast.core.FeatureTable_pb2.FeatureTable] | None = ..., - feature_views: collections.abc.Iterable[feast.core.FeatureView_pb2.FeatureView] | None = ..., - data_sources: collections.abc.Iterable[feast.core.DataSource_pb2.DataSource] | None = ..., - on_demand_feature_views: collections.abc.Iterable[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., - stream_feature_views: collections.abc.Iterable[feast.core.StreamFeatureView_pb2.StreamFeatureView] | None = ..., - feature_services: collections.abc.Iterable[feast.core.FeatureService_pb2.FeatureService] | None = ..., - saved_datasets: collections.abc.Iterable[feast.core.SavedDataset_pb2.SavedDataset] | None = ..., - validation_references: collections.abc.Iterable[feast.core.ValidationProfile_pb2.ValidationReference] | None = ..., - infra: feast.core.InfraObject_pb2.Infra | None = ..., - project_metadata: collections.abc.Iterable[global___ProjectMetadata] | None = ..., - registry_schema_version: builtins.str = ..., - version_id: builtins.str = ..., - last_updated: google.protobuf.timestamp_pb2.Timestamp | None = ..., - permissions: collections.abc.Iterable[feast.core.Permission_pb2.Permission] | None = ..., - projects: collections.abc.Iterable[feast.core.Project_pb2.Project] | None = ..., - feature_view_version_history: feast.core.FeatureViewVersion_pb2.FeatureViewVersionHistory | None = ..., + entities: _abc.Iterable[_Entity_pb2.Entity] | None = ..., + feature_tables: _abc.Iterable[_FeatureTable_pb2.FeatureTable] | None = ..., + feature_views: _abc.Iterable[_FeatureView_pb2.FeatureView] | None = ..., + data_sources: _abc.Iterable[_DataSource_pb2.DataSource] | None = ..., + on_demand_feature_views: _abc.Iterable[_OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., + stream_feature_views: _abc.Iterable[_StreamFeatureView_pb2.StreamFeatureView] | None = ..., + feature_services: _abc.Iterable[_FeatureService_pb2.FeatureService] | None = ..., + saved_datasets: _abc.Iterable[_SavedDataset_pb2.SavedDataset] | None = ..., + validation_references: _abc.Iterable[_ValidationProfile_pb2.ValidationReference] | None = ..., + infra: _InfraObject_pb2.Infra | None = ..., + project_metadata: _abc.Iterable[Global___ProjectMetadata] | None = ..., + registry_schema_version: _builtins.str = ..., + version_id: _builtins.str = ..., + last_updated: _timestamp_pb2.Timestamp | None = ..., + permissions: _abc.Iterable[_Permission_pb2.Permission] | None = ..., + projects: _abc.Iterable[_Project_pb2.Project] | None = ..., + feature_view_version_history: _FeatureViewVersion_pb2.FeatureViewVersionHistory | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_view_version_history", b"feature_view_version_history", "infra", b"infra", "last_updated", b"last_updated"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data_sources", b"data_sources", "entities", b"entities", "feature_services", b"feature_services", "feature_tables", b"feature_tables", "feature_view_version_history", b"feature_view_version_history", "feature_views", b"feature_views", "infra", b"infra", "last_updated", b"last_updated", "on_demand_feature_views", b"on_demand_feature_views", "permissions", b"permissions", "project_metadata", b"project_metadata", "projects", b"projects", "registry_schema_version", b"registry_schema_version", "saved_datasets", b"saved_datasets", "stream_feature_views", b"stream_feature_views", "validation_references", b"validation_references", "version_id", b"version_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_view_version_history", b"feature_view_version_history", "infra", b"infra", "last_updated", b"last_updated"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_sources", b"data_sources", "entities", b"entities", "feature_services", b"feature_services", "feature_tables", b"feature_tables", "feature_view_version_history", b"feature_view_version_history", "feature_views", b"feature_views", "infra", b"infra", "last_updated", b"last_updated", "on_demand_feature_views", b"on_demand_feature_views", "permissions", b"permissions", "project_metadata", b"project_metadata", "projects", b"projects", "registry_schema_version", b"registry_schema_version", "saved_datasets", b"saved_datasets", "stream_feature_views", b"stream_feature_views", "validation_references", b"validation_references", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Registry = Registry +Global___Registry: _TypeAlias = Registry # noqa: Y015 -class ProjectMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - PROJECT_UUID_FIELD_NUMBER: builtins.int - project: builtins.str - project_uuid: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + PROJECT_UUID_FIELD_NUMBER: _builtins.int + project: _builtins.str + project_uuid: _builtins.str def __init__( self, *, - project: builtins.str = ..., - project_uuid: builtins.str = ..., + project: _builtins.str = ..., + project_uuid: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project", b"project", "project_uuid", b"project_uuid"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project", "project_uuid", b"project_uuid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectMetadata = ProjectMetadata +Global___ProjectMetadata: _TypeAlias = ProjectMetadata # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi index 47525b64ede..e2c1fb27c4f 100644 --- a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi @@ -16,177 +16,202 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class SavedDatasetSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SavedDatasetSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - JOIN_KEYS_FIELD_NUMBER: builtins.int - FULL_FEATURE_NAMES_FIELD_NUMBER: builtins.int - STORAGE_FIELD_NUMBER: builtins.int - FEATURE_SERVICE_NAME_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + JOIN_KEYS_FIELD_NUMBER: _builtins.int + FULL_FEATURE_NAMES_FIELD_NUMBER: _builtins.int + STORAGE_FIELD_NUMBER: _builtins.int + FEATURE_SERVICE_NAME_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the dataset. Must be unique since it's possible to overwrite dataset by name""" - project: builtins.str + project: _builtins.str """Name of Feast project that this Dataset belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """list of feature references with format ":" """ - @property - def join_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """entity columns + request columns from all feature views used during retrieval""" - full_feature_names: builtins.bool + full_feature_names: _builtins.bool """Whether full feature names are used in stored data""" - @property - def storage(self) -> global___SavedDatasetStorage: ... - feature_service_name: builtins.str + feature_service_name: _builtins.str """Optional and only populated if generated from a feature service fetch""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def features(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + """list of feature references with format ":" """ + + @_builtins.property + def join_keys(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + """entity columns + request columns from all feature views used during retrieval""" + + @_builtins.property + def storage(self) -> Global___SavedDatasetStorage: ... + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[builtins.str] | None = ..., - join_keys: collections.abc.Iterable[builtins.str] | None = ..., - full_feature_names: builtins.bool = ..., - storage: global___SavedDatasetStorage | None = ..., - feature_service_name: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_builtins.str] | None = ..., + join_keys: _abc.Iterable[_builtins.str] | None = ..., + full_feature_names: _builtins.bool = ..., + storage: Global___SavedDatasetStorage | None = ..., + feature_service_name: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["storage", b"storage"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_service_name", b"feature_service_name", "features", b"features", "full_feature_names", b"full_feature_names", "join_keys", b"join_keys", "name", b"name", "project", b"project", "storage", b"storage", "tags", b"tags"]) -> None: ... - -global___SavedDatasetSpec = SavedDatasetSpec - -class SavedDatasetStorage(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILE_STORAGE_FIELD_NUMBER: builtins.int - BIGQUERY_STORAGE_FIELD_NUMBER: builtins.int - REDSHIFT_STORAGE_FIELD_NUMBER: builtins.int - SNOWFLAKE_STORAGE_FIELD_NUMBER: builtins.int - TRINO_STORAGE_FIELD_NUMBER: builtins.int - SPARK_STORAGE_FIELD_NUMBER: builtins.int - CUSTOM_STORAGE_FIELD_NUMBER: builtins.int - ATHENA_STORAGE_FIELD_NUMBER: builtins.int - @property - def file_storage(self) -> feast.core.DataSource_pb2.DataSource.FileOptions: ... - @property - def bigquery_storage(self) -> feast.core.DataSource_pb2.DataSource.BigQueryOptions: ... - @property - def redshift_storage(self) -> feast.core.DataSource_pb2.DataSource.RedshiftOptions: ... - @property - def snowflake_storage(self) -> feast.core.DataSource_pb2.DataSource.SnowflakeOptions: ... - @property - def trino_storage(self) -> feast.core.DataSource_pb2.DataSource.TrinoOptions: ... - @property - def spark_storage(self) -> feast.core.DataSource_pb2.DataSource.SparkOptions: ... - @property - def custom_storage(self) -> feast.core.DataSource_pb2.DataSource.CustomSourceOptions: ... - @property - def athena_storage(self) -> feast.core.DataSource_pb2.DataSource.AthenaOptions: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["storage", b"storage"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_service_name", b"feature_service_name", "features", b"features", "full_feature_names", b"full_feature_names", "join_keys", b"join_keys", "name", b"name", "project", b"project", "storage", b"storage", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SavedDatasetSpec: _TypeAlias = SavedDatasetSpec # noqa: Y015 + +@_typing.final +class SavedDatasetStorage(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FILE_STORAGE_FIELD_NUMBER: _builtins.int + BIGQUERY_STORAGE_FIELD_NUMBER: _builtins.int + REDSHIFT_STORAGE_FIELD_NUMBER: _builtins.int + SNOWFLAKE_STORAGE_FIELD_NUMBER: _builtins.int + TRINO_STORAGE_FIELD_NUMBER: _builtins.int + SPARK_STORAGE_FIELD_NUMBER: _builtins.int + CUSTOM_STORAGE_FIELD_NUMBER: _builtins.int + ATHENA_STORAGE_FIELD_NUMBER: _builtins.int + @_builtins.property + def file_storage(self) -> _DataSource_pb2.DataSource.FileOptions: ... + @_builtins.property + def bigquery_storage(self) -> _DataSource_pb2.DataSource.BigQueryOptions: ... + @_builtins.property + def redshift_storage(self) -> _DataSource_pb2.DataSource.RedshiftOptions: ... + @_builtins.property + def snowflake_storage(self) -> _DataSource_pb2.DataSource.SnowflakeOptions: ... + @_builtins.property + def trino_storage(self) -> _DataSource_pb2.DataSource.TrinoOptions: ... + @_builtins.property + def spark_storage(self) -> _DataSource_pb2.DataSource.SparkOptions: ... + @_builtins.property + def custom_storage(self) -> _DataSource_pb2.DataSource.CustomSourceOptions: ... + @_builtins.property + def athena_storage(self) -> _DataSource_pb2.DataSource.AthenaOptions: ... def __init__( self, *, - file_storage: feast.core.DataSource_pb2.DataSource.FileOptions | None = ..., - bigquery_storage: feast.core.DataSource_pb2.DataSource.BigQueryOptions | None = ..., - redshift_storage: feast.core.DataSource_pb2.DataSource.RedshiftOptions | None = ..., - snowflake_storage: feast.core.DataSource_pb2.DataSource.SnowflakeOptions | None = ..., - trino_storage: feast.core.DataSource_pb2.DataSource.TrinoOptions | None = ..., - spark_storage: feast.core.DataSource_pb2.DataSource.SparkOptions | None = ..., - custom_storage: feast.core.DataSource_pb2.DataSource.CustomSourceOptions | None = ..., - athena_storage: feast.core.DataSource_pb2.DataSource.AthenaOptions | None = ..., + file_storage: _DataSource_pb2.DataSource.FileOptions | None = ..., + bigquery_storage: _DataSource_pb2.DataSource.BigQueryOptions | None = ..., + redshift_storage: _DataSource_pb2.DataSource.RedshiftOptions | None = ..., + snowflake_storage: _DataSource_pb2.DataSource.SnowflakeOptions | None = ..., + trino_storage: _DataSource_pb2.DataSource.TrinoOptions | None = ..., + spark_storage: _DataSource_pb2.DataSource.SparkOptions | None = ..., + custom_storage: _DataSource_pb2.DataSource.CustomSourceOptions | None = ..., + athena_storage: _DataSource_pb2.DataSource.AthenaOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["file_storage", "bigquery_storage", "redshift_storage", "snowflake_storage", "trino_storage", "spark_storage", "custom_storage", "athena_storage"] | None: ... - -global___SavedDatasetStorage = SavedDatasetStorage - -class SavedDatasetMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - MIN_EVENT_TIMESTAMP_FIELD_NUMBER: builtins.int - MAX_EVENT_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["file_storage", "bigquery_storage", "redshift_storage", "snowflake_storage", "trino_storage", "spark_storage", "custom_storage", "athena_storage"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___SavedDatasetStorage: _TypeAlias = SavedDatasetStorage # noqa: Y015 + +@_typing.final +class SavedDatasetMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + MIN_EVENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + MAX_EVENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when this saved dataset is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when this saved dataset is last updated""" - @property - def min_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def min_event_timestamp(self) -> _timestamp_pb2.Timestamp: """Min timestamp in the dataset (needed for retrieval)""" - @property - def max_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def max_event_timestamp(self) -> _timestamp_pb2.Timestamp: """Max timestamp in the dataset (needed for retrieval)""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - min_event_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - max_event_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + min_event_timestamp: _timestamp_pb2.Timestamp | None = ..., + max_event_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"]) -> None: ... - -global___SavedDatasetMeta = SavedDatasetMeta - -class SavedDataset(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___SavedDatasetSpec: ... - @property - def meta(self) -> global___SavedDatasetMeta: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SavedDatasetMeta: _TypeAlias = SavedDatasetMeta # noqa: Y015 + +@_typing.final +class SavedDataset(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___SavedDatasetSpec: ... + @_builtins.property + def meta(self) -> Global___SavedDatasetMeta: ... def __init__( self, *, - spec: global___SavedDatasetSpec | None = ..., - meta: global___SavedDatasetMeta | None = ..., + spec: Global___SavedDatasetSpec | None = ..., + meta: Global___SavedDatasetMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SavedDataset = SavedDataset +Global___SavedDataset: _TypeAlias = SavedDataset # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi index 10ecebf362b..43d97f7d188 100644 --- a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi @@ -16,35 +16,39 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class SqliteTable(google.protobuf.message.Message): +@_typing.final +class SqliteTable(_message.Message): """Represents a Sqlite table""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PATH_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - path: builtins.str + PATH_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + path: _builtins.str """Absolute path of the table""" - name: builtins.str + name: _builtins.str """Name of the table""" def __init__( self, *, - path: builtins.str = ..., - name: builtins.str = ..., + path: _builtins.str = ..., + name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "path", b"path"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "path", b"path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SqliteTable = SqliteTable +Global___SqliteTable: _TypeAlias = SqliteTable # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Store_pb2.pyi b/sdk/python/feast/protos/feast/core/Store_pb2.pyi index 5ee957d184f..718654b267c 100644 --- a/sdk/python/feast/protos/feast/core/Store_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Store_pb2.pyi @@ -16,37 +16,39 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Store(google.protobuf.message.Message): +@_typing.final +class Store(_message.Message): """Store provides a location where Feast reads and writes feature values. Feature values will be written to the Store in the form of FeatureRow elements. The way FeatureRow is encoded and decoded when it is written to and read from the Store depends on the type of the Store. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _StoreType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _StoreTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _StoreTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: Store._StoreType.ValueType # 0 REDIS: Store._StoreType.ValueType # 1 """Redis stores a FeatureRow element as a key, value pair. @@ -76,48 +78,51 @@ class Store(google.protobuf.message.Message): """ REDIS_CLUSTER: Store.StoreType.ValueType # 4 - class RedisConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HOST_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - INITIAL_BACKOFF_MS_FIELD_NUMBER: builtins.int - MAX_RETRIES_FIELD_NUMBER: builtins.int - FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: builtins.int - SSL_FIELD_NUMBER: builtins.int - host: builtins.str - port: builtins.int - initial_backoff_ms: builtins.int + @_typing.final + class RedisConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HOST_FIELD_NUMBER: _builtins.int + PORT_FIELD_NUMBER: _builtins.int + INITIAL_BACKOFF_MS_FIELD_NUMBER: _builtins.int + MAX_RETRIES_FIELD_NUMBER: _builtins.int + FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: _builtins.int + SSL_FIELD_NUMBER: _builtins.int + host: _builtins.str + port: _builtins.int + initial_backoff_ms: _builtins.int """Optional. The number of milliseconds to wait before retrying failed Redis connection. By default, Feast uses exponential backoff policy and "initial_backoff_ms" sets the initial wait duration. """ - max_retries: builtins.int + max_retries: _builtins.int """Optional. Maximum total number of retries for connecting to Redis. Default to zero retries.""" - flush_frequency_seconds: builtins.int + flush_frequency_seconds: _builtins.int """Optional. How often flush data to redis""" - ssl: builtins.bool + ssl: _builtins.bool """Optional. Connect over SSL.""" def __init__( self, *, - host: builtins.str = ..., - port: builtins.int = ..., - initial_backoff_ms: builtins.int = ..., - max_retries: builtins.int = ..., - flush_frequency_seconds: builtins.int = ..., - ssl: builtins.bool = ..., + host: _builtins.str = ..., + port: _builtins.int = ..., + initial_backoff_ms: _builtins.int = ..., + max_retries: _builtins.int = ..., + flush_frequency_seconds: _builtins.int = ..., + ssl: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["flush_frequency_seconds", b"flush_frequency_seconds", "host", b"host", "initial_backoff_ms", b"initial_backoff_ms", "max_retries", b"max_retries", "port", b"port", "ssl", b"ssl"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["flush_frequency_seconds", b"flush_frequency_seconds", "host", b"host", "initial_backoff_ms", b"initial_backoff_ms", "max_retries", b"max_retries", "port", b"port", "ssl", b"ssl"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedisClusterConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RedisClusterConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _ReadFrom: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _ReadFromEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _ReadFromEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor MASTER: Store.RedisClusterConfig._ReadFrom.ValueType # 0 MASTER_PREFERRED: Store.RedisClusterConfig._ReadFrom.ValueType # 1 REPLICA: Store.RedisClusterConfig._ReadFrom.ValueType # 2 @@ -131,50 +136,52 @@ class Store(google.protobuf.message.Message): REPLICA: Store.RedisClusterConfig.ReadFrom.ValueType # 2 REPLICA_PREFERRED: Store.RedisClusterConfig.ReadFrom.ValueType # 3 - CONNECTION_STRING_FIELD_NUMBER: builtins.int - INITIAL_BACKOFF_MS_FIELD_NUMBER: builtins.int - MAX_RETRIES_FIELD_NUMBER: builtins.int - FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: builtins.int - KEY_PREFIX_FIELD_NUMBER: builtins.int - ENABLE_FALLBACK_FIELD_NUMBER: builtins.int - FALLBACK_PREFIX_FIELD_NUMBER: builtins.int - READ_FROM_FIELD_NUMBER: builtins.int - connection_string: builtins.str + CONNECTION_STRING_FIELD_NUMBER: _builtins.int + INITIAL_BACKOFF_MS_FIELD_NUMBER: _builtins.int + MAX_RETRIES_FIELD_NUMBER: _builtins.int + FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: _builtins.int + KEY_PREFIX_FIELD_NUMBER: _builtins.int + ENABLE_FALLBACK_FIELD_NUMBER: _builtins.int + FALLBACK_PREFIX_FIELD_NUMBER: _builtins.int + READ_FROM_FIELD_NUMBER: _builtins.int + connection_string: _builtins.str """List of Redis Uri for all the nodes in Redis Cluster, comma separated. Eg. host1:6379, host2:6379""" - initial_backoff_ms: builtins.int - max_retries: builtins.int - flush_frequency_seconds: builtins.int + initial_backoff_ms: _builtins.int + max_retries: _builtins.int + flush_frequency_seconds: _builtins.int """Optional. How often flush data to redis""" - key_prefix: builtins.str + key_prefix: _builtins.str """Optional. Append a prefix to the Redis Key""" - enable_fallback: builtins.bool + enable_fallback: _builtins.bool """Optional. Enable fallback to another key prefix if the original key is not present. Useful for migrating key prefix without re-ingestion. Disabled by default. """ - fallback_prefix: builtins.str + fallback_prefix: _builtins.str """Optional. This would be the fallback prefix to use if enable_fallback is true.""" - read_from: global___Store.RedisClusterConfig.ReadFrom.ValueType + read_from: Global___Store.RedisClusterConfig.ReadFrom.ValueType def __init__( self, *, - connection_string: builtins.str = ..., - initial_backoff_ms: builtins.int = ..., - max_retries: builtins.int = ..., - flush_frequency_seconds: builtins.int = ..., - key_prefix: builtins.str = ..., - enable_fallback: builtins.bool = ..., - fallback_prefix: builtins.str = ..., - read_from: global___Store.RedisClusterConfig.ReadFrom.ValueType = ..., + connection_string: _builtins.str = ..., + initial_backoff_ms: _builtins.int = ..., + max_retries: _builtins.int = ..., + flush_frequency_seconds: _builtins.int = ..., + key_prefix: _builtins.str = ..., + enable_fallback: _builtins.bool = ..., + fallback_prefix: _builtins.str = ..., + read_from: Global___Store.RedisClusterConfig.ReadFrom.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["connection_string", b"connection_string", "enable_fallback", b"enable_fallback", "fallback_prefix", b"fallback_prefix", "flush_frequency_seconds", b"flush_frequency_seconds", "initial_backoff_ms", b"initial_backoff_ms", "key_prefix", b"key_prefix", "max_retries", b"max_retries", "read_from", b"read_from"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["connection_string", b"connection_string", "enable_fallback", b"enable_fallback", "fallback_prefix", b"fallback_prefix", "flush_frequency_seconds", b"flush_frequency_seconds", "initial_backoff_ms", b"initial_backoff_ms", "key_prefix", b"key_prefix", "max_retries", b"max_retries", "read_from", b"read_from"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class Subscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class Subscription(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - EXCLUDE_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + EXCLUDE_FIELD_NUMBER: _builtins.int + project: _builtins.str """Name of project that the feature sets belongs to. This can be one of - [project_name] - * @@ -182,7 +189,7 @@ class Store(google.protobuf.message.Message): be matched. It is NOT possible to provide an asterisk with a string in order to do pattern matching. """ - name: builtins.str + name: _builtins.str """Name of the desired feature set. Asterisks can be used as wildcards in the name. Matching on names is only permitted if a specific project is defined. It is disallowed If the project name is set to "*" @@ -191,44 +198,50 @@ class Store(google.protobuf.message.Message): - my-feature-set* can be used to match all features prefixed by "my-feature-set" - my-feature-set-6 can be used to select a single feature set """ - exclude: builtins.bool + exclude: _builtins.bool """All matches with exclude enabled will be filtered out instead of added""" def __init__( self, *, - project: builtins.str = ..., - name: builtins.str = ..., - exclude: builtins.bool = ..., + project: _builtins.str = ..., + name: _builtins.str = ..., + exclude: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["exclude", b"exclude", "name", b"name", "project", b"project"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - SUBSCRIPTIONS_FIELD_NUMBER: builtins.int - REDIS_CONFIG_FIELD_NUMBER: builtins.int - REDIS_CLUSTER_CONFIG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["exclude", b"exclude", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + SUBSCRIPTIONS_FIELD_NUMBER: _builtins.int + REDIS_CONFIG_FIELD_NUMBER: _builtins.int + REDIS_CLUSTER_CONFIG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the store.""" - type: global___Store.StoreType.ValueType + type: Global___Store.StoreType.ValueType """Type of store.""" - @property - def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Store.Subscription]: + @_builtins.property + def subscriptions(self) -> _containers.RepeatedCompositeFieldContainer[Global___Store.Subscription]: """Feature sets to subscribe to.""" - @property - def redis_config(self) -> global___Store.RedisConfig: ... - @property - def redis_cluster_config(self) -> global___Store.RedisClusterConfig: ... + + @_builtins.property + def redis_config(self) -> Global___Store.RedisConfig: ... + @_builtins.property + def redis_cluster_config(self) -> Global___Store.RedisClusterConfig: ... def __init__( self, *, - name: builtins.str = ..., - type: global___Store.StoreType.ValueType = ..., - subscriptions: collections.abc.Iterable[global___Store.Subscription] | None = ..., - redis_config: global___Store.RedisConfig | None = ..., - redis_cluster_config: global___Store.RedisClusterConfig | None = ..., + name: _builtins.str = ..., + type: Global___Store.StoreType.ValueType = ..., + subscriptions: _abc.Iterable[Global___Store.Subscription] | None = ..., + redis_config: Global___Store.RedisConfig | None = ..., + redis_cluster_config: Global___Store.RedisClusterConfig | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["config", b"config", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "name", b"name", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config", "subscriptions", b"subscriptions", "type", b"type"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["config", b"config"]) -> typing_extensions.Literal["redis_config", "redis_cluster_config"] | None: ... - -global___Store = Store + _HasFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "name", b"name", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config", "subscriptions", b"subscriptions", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_config: _TypeAlias = _typing.Literal["redis_config", "redis_cluster_config"] # noqa: Y015 + _WhichOneofArgType_config: _TypeAlias = _typing.Literal["config", b"config"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_config) -> _WhichOneofReturnType_config | None: ... + +Global___Store: _TypeAlias = Store # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py index 3c87e635b92..85a61d06005 100644 --- a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py +++ b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py @@ -21,7 +21,7 @@ from feast.protos.feast.core import Transformation_pb2 as feast_dot_core_dot_Transformation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"feast/core/StreamFeatureView.proto\x12\nfeast.core\x1a\x1egoogle/protobuf/duration.proto\x1a$feast/core/OnDemandFeatureView.proto\x1a\x1c\x66\x65\x61st/core/FeatureView.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x1c\x66\x65\x61st/core/Aggregation.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\"o\n\x11StreamFeatureView\x12/\n\x04spec\x18\x01 \x01(\x0b\x32!.feast.core.StreamFeatureViewSpec\x12)\n\x04meta\x18\x02 \x01(\x0b\x32\x1b.feast.core.FeatureViewMeta\"\x9f\x06\n\x15StreamFeatureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x10\n\x08\x65ntities\x18\x03 \x03(\t\x12+\n\x08\x66\x65\x61tures\x18\x04 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x31\n\x0e\x65ntity_columns\x18\x05 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x39\n\x04tags\x18\x07 \x03(\x0b\x32+.feast.core.StreamFeatureViewSpec.TagsEntry\x12\r\n\x05owner\x18\x08 \x01(\t\x12&\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12,\n\x0c\x62\x61tch_source\x18\n \x01(\x0b\x32\x16.feast.core.DataSource\x12-\n\rstream_source\x18\x0b \x01(\x0b\x32\x16.feast.core.DataSource\x12\x0e\n\x06online\x18\x0c \x01(\x08\x12\x42\n\x15user_defined_function\x18\r \x01(\x0b\x32\x1f.feast.core.UserDefinedFunctionB\x02\x18\x01\x12\x0c\n\x04mode\x18\x0e \x01(\t\x12-\n\x0c\x61ggregations\x18\x0f \x03(\x0b\x32\x17.feast.core.Aggregation\x12\x17\n\x0ftimestamp_field\x18\x10 \x01(\t\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\x11 \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x15\n\renable_tiling\x18\x12 \x01(\x08\x12\x32\n\x0ftiling_hop_size\x18\x13 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11\x65nable_validation\x18\x14 \x01(\x08\x12\x0f\n\x07version\x18\x15 \x01(\t\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42[\n\x10\x66\x65\x61st.proto.coreB\x16StreamFeatureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"feast/core/StreamFeatureView.proto\x12\nfeast.core\x1a\x1egoogle/protobuf/duration.proto\x1a$feast/core/OnDemandFeatureView.proto\x1a\x1c\x66\x65\x61st/core/FeatureView.proto\x1a\x18\x66\x65\x61st/core/Feature.proto\x1a\x1b\x66\x65\x61st/core/DataSource.proto\x1a\x1c\x66\x65\x61st/core/Aggregation.proto\x1a\x1f\x66\x65\x61st/core/Transformation.proto\"o\n\x11StreamFeatureView\x12/\n\x04spec\x18\x01 \x01(\x0b\x32!.feast.core.StreamFeatureViewSpec\x12)\n\x04meta\x18\x02 \x01(\x0b\x32\x1b.feast.core.FeatureViewMeta\"\xac\x06\n\x15StreamFeatureViewSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x10\n\x08\x65ntities\x18\x03 \x03(\t\x12+\n\x08\x66\x65\x61tures\x18\x04 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x31\n\x0e\x65ntity_columns\x18\x05 \x03(\x0b\x32\x19.feast.core.FeatureSpecV2\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x39\n\x04tags\x18\x07 \x03(\x0b\x32+.feast.core.StreamFeatureViewSpec.TagsEntry\x12\r\n\x05owner\x18\x08 \x01(\t\x12&\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12,\n\x0c\x62\x61tch_source\x18\n \x01(\x0b\x32\x16.feast.core.DataSource\x12-\n\rstream_source\x18\x0b \x01(\x0b\x32\x16.feast.core.DataSource\x12\x0e\n\x06online\x18\x0c \x01(\x08\x12\x42\n\x15user_defined_function\x18\r \x01(\x0b\x32\x1f.feast.core.UserDefinedFunctionB\x02\x18\x01\x12\x0c\n\x04mode\x18\x0e \x01(\t\x12-\n\x0c\x61ggregations\x18\x0f \x03(\x0b\x32\x17.feast.core.Aggregation\x12\x17\n\x0ftimestamp_field\x18\x10 \x01(\t\x12\x43\n\x16\x66\x65\x61ture_transformation\x18\x11 \x01(\x0b\x32#.feast.core.FeatureTransformationV2\x12\x15\n\renable_tiling\x18\x12 \x01(\x08\x12\x32\n\x0ftiling_hop_size\x18\x13 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11\x65nable_validation\x18\x14 \x01(\x08\x12\x0f\n\x07version\x18\x15 \x01(\t\x12\x0b\n\x03org\x18\x16 \x01(\t\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42[\n\x10\x66\x65\x61st.proto.coreB\x16StreamFeatureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -36,7 +36,7 @@ _globals['_STREAMFEATUREVIEW']._serialized_start=268 _globals['_STREAMFEATUREVIEW']._serialized_end=379 _globals['_STREAMFEATUREVIEWSPEC']._serialized_start=382 - _globals['_STREAMFEATUREVIEWSPEC']._serialized_end=1181 - _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1138 - _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1181 + _globals['_STREAMFEATUREVIEWSPEC']._serialized_end=1194 + _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1151 + _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1194 # @@protoc_insertion_point(module_scope) diff --git a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi index b4ab6a9a016..3fafb889540 100644 --- a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi @@ -16,174 +16,206 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.Aggregation_pb2 -import feast.core.DataSource_pb2 -import feast.core.FeatureView_pb2 -import feast.core.Feature_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import Aggregation_pb2 as _Aggregation_pb2 +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class StreamFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___StreamFeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___StreamFeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> feast.core.FeatureView_pb2.FeatureViewMeta: ... + + @_builtins.property + def meta(self) -> _FeatureView_pb2.FeatureViewMeta: ... def __init__( self, *, - spec: global___StreamFeatureViewSpec | None = ..., - meta: feast.core.FeatureView_pb2.FeatureViewMeta | None = ..., + spec: Global___StreamFeatureViewSpec | None = ..., + meta: _FeatureView_pb2.FeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StreamFeatureView = StreamFeatureView +Global___StreamFeatureView: _TypeAlias = StreamFeatureView # noqa: Y015 -class StreamFeatureViewSpec(google.protobuf.message.Message): - """Next available id: 22""" +@_typing.final +class StreamFeatureViewSpec(_message.Message): + """Next available id: 23""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - ONLINE_FIELD_NUMBER: builtins.int - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - AGGREGATIONS_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - ENABLE_TILING_FIELD_NUMBER: builtins.int - TILING_HOP_SIZE_FIELD_NUMBER: builtins.int - ENABLE_VALIDATION_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + TTL_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + ONLINE_FIELD_NUMBER: _builtins.int + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + AGGREGATIONS_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + ENABLE_TILING_FIELD_NUMBER: _builtins.int + TILING_HOP_SIZE_FIELD_NUMBER: _builtins.int + ENABLE_VALIDATION_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + description: _builtins.str + """Description of the feature view.""" + owner: _builtins.str + """Owner of the feature view.""" + online: _builtins.bool + """Whether these features should be served online or not""" + mode: _builtins.str + """Mode of execution""" + timestamp_field: _builtins.str + """Timestamp field for aggregation""" + enable_tiling: _builtins.bool + """Enable tiling for efficient window aggregation""" + enable_validation: _builtins.bool + """Whether schema validation is enabled during materialization""" + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this stream feature view (e.g. "ads", "search").""" + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - description: builtins.str - """Description of the feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - owner: builtins.str - """Owner of the feature view.""" - @property - def ttl(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def ttl(self) -> _duration_pb2.Duration: """Features in this feature view can only be retrieved from online serving younger than ttl. Ttl is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside ttl will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data.""" - online: builtins.bool - """Whether these features should be served online or not""" - @property - def user_defined_function(self) -> feast.core.OnDemandFeatureView_pb2.UserDefinedFunction: + + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def user_defined_function(self) -> _OnDemandFeatureView_pb2.UserDefinedFunction: """Serialized function that is encoded in the streamfeatureview""" - mode: builtins.str - """Mode of execution""" - @property - def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: + + @_builtins.property + def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: """Aggregation definitions""" - timestamp_field: builtins.str - """Timestamp field for aggregation""" - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - enable_tiling: builtins.bool - """Enable tiling for efficient window aggregation""" - @property - def tiling_hop_size(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def tiling_hop_size(self) -> _duration_pb2.Duration: """Hop size for tiling (e.g., 5 minutes). Determines the granularity of pre-aggregated tiles. If not specified, defaults to 5 minutes. Only used when enable_tiling is true. """ - enable_validation: builtins.bool - """Whether schema validation is enabled during materialization""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - ttl: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - online: builtins.bool = ..., - user_defined_function: feast.core.OnDemandFeatureView_pb2.UserDefinedFunction | None = ..., - mode: builtins.str = ..., - aggregations: collections.abc.Iterable[feast.core.Aggregation_pb2.Aggregation] | None = ..., - timestamp_field: builtins.str = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - enable_tiling: builtins.bool = ..., - tiling_hop_size: google.protobuf.duration_pb2.Duration | None = ..., - enable_validation: builtins.bool = ..., - version: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + ttl: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + online: _builtins.bool = ..., + user_defined_function: _OnDemandFeatureView_pb2.UserDefinedFunction | None = ..., + mode: _builtins.str = ..., + aggregations: _abc.Iterable[_Aggregation_pb2.Aggregation] | None = ..., + timestamp_field: _builtins.str = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + enable_tiling: _builtins.bool = ..., + tiling_hop_size: _duration_pb2.Duration | None = ..., + enable_validation: _builtins.bool = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "tiling_hop_size", b"tiling_hop_size", "ttl", b"ttl", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aggregations", b"aggregations", "batch_source", b"batch_source", "description", b"description", "enable_tiling", b"enable_tiling", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "online", b"online", "owner", b"owner", "project", b"project", "stream_source", b"stream_source", "tags", b"tags", "tiling_hop_size", b"tiling_hop_size", "timestamp_field", b"timestamp_field", "ttl", b"ttl", "user_defined_function", b"user_defined_function", "version", b"version"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "tiling_hop_size", b"tiling_hop_size", "ttl", b"ttl", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["aggregations", b"aggregations", "batch_source", b"batch_source", "description", b"description", "enable_tiling", b"enable_tiling", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "stream_source", b"stream_source", "tags", b"tags", "tiling_hop_size", b"tiling_hop_size", "timestamp_field", b"timestamp_field", "ttl", b"ttl", "user_defined_function", b"user_defined_function", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StreamFeatureViewSpec = StreamFeatureViewSpec +Global___StreamFeatureViewSpec: _TypeAlias = StreamFeatureViewSpec # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi index fb56ab5bc73..d8aacf9f812 100644 --- a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi @@ -2,83 +2,94 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class UserDefinedFunctionV2(google.protobuf.message.Message): +@_typing.final +class UserDefinedFunctionV2(_message.Message): """Serialized representation of python function.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - BODY_FIELD_NUMBER: builtins.int - BODY_TEXT_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + BODY_FIELD_NUMBER: _builtins.int + BODY_TEXT_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + name: _builtins.str """The function name""" - body: builtins.bytes + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" - body_text: builtins.str + body_text: _builtins.str """The string representation of the udf""" - mode: builtins.str + mode: _builtins.str """The transformation mode (e.g., "python", "pandas", "ray", "spark", "sql")""" def __init__( self, *, - name: builtins.str = ..., - body: builtins.bytes = ..., - body_text: builtins.str = ..., - mode: builtins.str = ..., + name: _builtins.str = ..., + body: _builtins.bytes = ..., + body_text: _builtins.str = ..., + mode: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "mode", b"mode", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "body_text", b"body_text", "mode", b"mode", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UserDefinedFunctionV2 = UserDefinedFunctionV2 +Global___UserDefinedFunctionV2: _TypeAlias = UserDefinedFunctionV2 # noqa: Y015 -class FeatureTransformationV2(google.protobuf.message.Message): +@_typing.final +class FeatureTransformationV2(_message.Message): """A feature transformation executed as a user-defined function""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - SUBSTRAIT_TRANSFORMATION_FIELD_NUMBER: builtins.int - @property - def user_defined_function(self) -> global___UserDefinedFunctionV2: ... - @property - def substrait_transformation(self) -> global___SubstraitTransformationV2: ... + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + SUBSTRAIT_TRANSFORMATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def user_defined_function(self) -> Global___UserDefinedFunctionV2: ... + @_builtins.property + def substrait_transformation(self) -> Global___SubstraitTransformationV2: ... def __init__( self, *, - user_defined_function: global___UserDefinedFunctionV2 | None = ..., - substrait_transformation: global___SubstraitTransformationV2 | None = ..., + user_defined_function: Global___UserDefinedFunctionV2 | None = ..., + substrait_transformation: Global___SubstraitTransformationV2 | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["transformation", b"transformation"]) -> typing_extensions.Literal["user_defined_function", "substrait_transformation"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_transformation: _TypeAlias = _typing.Literal["user_defined_function", "substrait_transformation"] # noqa: Y015 + _WhichOneofArgType_transformation: _TypeAlias = _typing.Literal["transformation", b"transformation"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_transformation) -> _WhichOneofReturnType_transformation | None: ... -global___FeatureTransformationV2 = FeatureTransformationV2 +Global___FeatureTransformationV2: _TypeAlias = FeatureTransformationV2 # noqa: Y015 -class SubstraitTransformationV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SubstraitTransformationV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SUBSTRAIT_PLAN_FIELD_NUMBER: builtins.int - IBIS_FUNCTION_FIELD_NUMBER: builtins.int - substrait_plan: builtins.bytes - ibis_function: builtins.bytes + SUBSTRAIT_PLAN_FIELD_NUMBER: _builtins.int + IBIS_FUNCTION_FIELD_NUMBER: _builtins.int + substrait_plan: _builtins.bytes + ibis_function: _builtins.bytes def __init__( self, *, - substrait_plan: builtins.bytes = ..., - ibis_function: builtins.bytes = ..., + substrait_plan: _builtins.bytes = ..., + ibis_function: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SubstraitTransformationV2 = SubstraitTransformationV2 +Global___SubstraitTransformationV2: _TypeAlias = SubstraitTransformationV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi index 93da1e0f5e8..16cc081f054 100644 --- a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi @@ -16,121 +16,139 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class GEValidationProfiler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GEValidationProfiler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class UserDefinedProfiler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class UserDefinedProfiler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - BODY_FIELD_NUMBER: builtins.int - body: builtins.bytes + BODY_FIELD_NUMBER: _builtins.int + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" def __init__( self, *, - body: builtins.bytes = ..., + body: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROFILER_FIELD_NUMBER: builtins.int - @property - def profiler(self) -> global___GEValidationProfiler.UserDefinedProfiler: ... + PROFILER_FIELD_NUMBER: _builtins.int + @_builtins.property + def profiler(self) -> Global___GEValidationProfiler.UserDefinedProfiler: ... def __init__( self, *, - profiler: global___GEValidationProfiler.UserDefinedProfiler | None = ..., + profiler: Global___GEValidationProfiler.UserDefinedProfiler | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["profiler", b"profiler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["profiler", b"profiler"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GEValidationProfiler = GEValidationProfiler +Global___GEValidationProfiler: _TypeAlias = GEValidationProfiler # noqa: Y015 -class GEValidationProfile(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GEValidationProfile(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - EXPECTATION_SUITE_FIELD_NUMBER: builtins.int - expectation_suite: builtins.bytes + EXPECTATION_SUITE_FIELD_NUMBER: _builtins.int + expectation_suite: _builtins.bytes """JSON-serialized ExpectationSuite object""" def __init__( self, *, - expectation_suite: builtins.bytes = ..., + expectation_suite: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["expectation_suite", b"expectation_suite"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["expectation_suite", b"expectation_suite"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GEValidationProfile = GEValidationProfile +Global___GEValidationProfile: _TypeAlias = GEValidationProfile # noqa: Y015 -class ValidationReference(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ValidationReference(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - REFERENCE_DATASET_NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - GE_PROFILER_FIELD_NUMBER: builtins.int - GE_PROFILE_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + REFERENCE_DATASET_NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + GE_PROFILER_FIELD_NUMBER: _builtins.int + GE_PROFILE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Unique name of validation reference within the project""" - reference_dataset_name: builtins.str + reference_dataset_name: _builtins.str """Name of saved dataset used as reference dataset""" - project: builtins.str + project: _builtins.str """Name of Feast project that this object source belongs to""" - description: builtins.str + description: _builtins.str """Description of the validation reference""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def ge_profiler(self) -> global___GEValidationProfiler: ... - @property - def ge_profile(self) -> global___GEValidationProfile: ... + + @_builtins.property + def ge_profiler(self) -> Global___GEValidationProfiler: ... + @_builtins.property + def ge_profile(self) -> Global___GEValidationProfile: ... def __init__( self, *, - name: builtins.str = ..., - reference_dataset_name: builtins.str = ..., - project: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ge_profiler: global___GEValidationProfiler | None = ..., - ge_profile: global___GEValidationProfile | None = ..., + name: _builtins.str = ..., + reference_dataset_name: _builtins.str = ..., + project: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ge_profiler: Global___GEValidationProfiler | None = ..., + ge_profile: Global___GEValidationProfile | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cached_profile", b"cached_profile", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "profiler", b"profiler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cached_profile", b"cached_profile", "description", b"description", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "name", b"name", "profiler", b"profiler", "project", b"project", "reference_dataset_name", b"reference_dataset_name", "tags", b"tags"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["cached_profile", b"cached_profile"]) -> typing_extensions.Literal["ge_profile"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["profiler", b"profiler"]) -> typing_extensions.Literal["ge_profiler"] | None: ... - -global___ValidationReference = ValidationReference + _HasFieldArgType: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "profiler", b"profiler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile", "description", b"description", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "name", b"name", "profiler", b"profiler", "project", b"project", "reference_dataset_name", b"reference_dataset_name", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_cached_profile: _TypeAlias = _typing.Literal["ge_profile"] # noqa: Y015 + _WhichOneofArgType_cached_profile: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile"] # noqa: Y015 + _WhichOneofReturnType_profiler: _TypeAlias = _typing.Literal["ge_profiler"] # noqa: Y015 + _WhichOneofArgType_profiler: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_cached_profile) -> _WhichOneofReturnType_cached_profile | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_profiler) -> _WhichOneofReturnType_profiler | None: ... + +Global___ValidationReference: _TypeAlias = ValidationReference # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi index a1f1b99365d..7dd137bc89e 100644 --- a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi @@ -2,1841 +2,2053 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Entity_pb2 -import feast.core.FeatureService_pb2 -import feast.core.FeatureView_pb2 -import feast.core.InfraObject_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Permission_pb2 -import feast.core.Project_pb2 -import feast.core.Registry_pb2 -import feast.core.SavedDataset_pb2 -import feast.core.StreamFeatureView_pb2 -import feast.core.ValidationProfile_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Entity_pb2 as _Entity_pb2 +from feast.core import FeatureService_pb2 as _FeatureService_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import InfraObject_pb2 as _InfraObject_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Permission_pb2 as _Permission_pb2 +from feast.core import Project_pb2 as _Project_pb2 +from feast.core import Registry_pb2 as _Registry_pb2 +from feast.core import SavedDataset_pb2 as _SavedDataset_pb2 +from feast.core import StreamFeatureView_pb2 as _StreamFeatureView_pb2 +from feast.core import ValidationProfile_pb2 as _ValidationProfile_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class PaginationParams(google.protobuf.message.Message): +@_typing.final +class PaginationParams(_message.Message): """Common pagination and sorting messages""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PAGE_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - page: builtins.int + PAGE_FIELD_NUMBER: _builtins.int + LIMIT_FIELD_NUMBER: _builtins.int + page: _builtins.int """1-based page number""" - limit: builtins.int + limit: _builtins.int """Number of items per page""" def __init__( self, *, - page: builtins.int = ..., - limit: builtins.int = ..., + page: _builtins.int = ..., + limit: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["limit", b"limit", "page", b"page"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["limit", b"limit", "page", b"page"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PaginationParams = PaginationParams +Global___PaginationParams: _TypeAlias = PaginationParams # noqa: Y015 -class SortingParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SortingParams(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SORT_BY_FIELD_NUMBER: builtins.int - SORT_ORDER_FIELD_NUMBER: builtins.int - sort_by: builtins.str + SORT_BY_FIELD_NUMBER: _builtins.int + SORT_ORDER_FIELD_NUMBER: _builtins.int + sort_by: _builtins.str """Field to sort by (supports dot notation)""" - sort_order: builtins.str + sort_order: _builtins.str """"asc" or "desc" """ def __init__( self, *, - sort_by: builtins.str = ..., - sort_order: builtins.str = ..., + sort_by: _builtins.str = ..., + sort_order: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SortingParams = SortingParams +Global___SortingParams: _TypeAlias = SortingParams # noqa: Y015 -class PaginationMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PaginationMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PAGE_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - TOTAL_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PAGES_FIELD_NUMBER: builtins.int - HAS_NEXT_FIELD_NUMBER: builtins.int - HAS_PREVIOUS_FIELD_NUMBER: builtins.int - page: builtins.int - limit: builtins.int - total_count: builtins.int - total_pages: builtins.int - has_next: builtins.bool - has_previous: builtins.bool + PAGE_FIELD_NUMBER: _builtins.int + LIMIT_FIELD_NUMBER: _builtins.int + TOTAL_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PAGES_FIELD_NUMBER: _builtins.int + HAS_NEXT_FIELD_NUMBER: _builtins.int + HAS_PREVIOUS_FIELD_NUMBER: _builtins.int + page: _builtins.int + limit: _builtins.int + total_count: _builtins.int + total_pages: _builtins.int + has_next: _builtins.bool + has_previous: _builtins.bool def __init__( self, *, - page: builtins.int = ..., - limit: builtins.int = ..., - total_count: builtins.int = ..., - total_pages: builtins.int = ..., - has_next: builtins.bool = ..., - has_previous: builtins.bool = ..., + page: _builtins.int = ..., + limit: _builtins.int = ..., + total_count: _builtins.int = ..., + total_pages: _builtins.int = ..., + has_next: _builtins.bool = ..., + has_previous: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["has_next", b"has_next", "has_previous", b"has_previous", "limit", b"limit", "page", b"page", "total_count", b"total_count", "total_pages", b"total_pages"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["has_next", b"has_next", "has_previous", b"has_previous", "limit", b"limit", "page", b"page", "total_count", b"total_count", "total_pages", b"total_pages"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PaginationMetadata = PaginationMetadata +Global___PaginationMetadata: _TypeAlias = PaginationMetadata # noqa: Y015 -class RefreshRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RefreshRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + project: _builtins.str def __init__( self, *, - project: builtins.str = ..., + project: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RefreshRequest = RefreshRequest +Global___RefreshRequest: _TypeAlias = RefreshRequest # noqa: Y015 -class UpdateInfraRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UpdateInfraRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - INFRA_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def infra(self) -> feast.core.InfraObject_pb2.Infra: ... - project: builtins.str - commit: builtins.bool + INFRA_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def infra(self) -> _InfraObject_pb2.Infra: ... def __init__( self, *, - infra: feast.core.InfraObject_pb2.Infra | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + infra: _InfraObject_pb2.Infra | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["infra", b"infra"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "infra", b"infra", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["infra", b"infra"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "infra", b"infra", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UpdateInfraRequest = UpdateInfraRequest +Global___UpdateInfraRequest: _TypeAlias = UpdateInfraRequest # noqa: Y015 -class GetInfraRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetInfraRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetInfraRequest = GetInfraRequest +Global___GetInfraRequest: _TypeAlias = GetInfraRequest # noqa: Y015 -class ListProjectMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectMetadataRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectMetadataRequest = ListProjectMetadataRequest +Global___ListProjectMetadataRequest: _TypeAlias = ListProjectMetadataRequest # noqa: Y015 -class ListProjectMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectMetadataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_METADATA_FIELD_NUMBER: builtins.int - @property - def project_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Registry_pb2.ProjectMetadata]: ... + PROJECT_METADATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def project_metadata(self) -> _containers.RepeatedCompositeFieldContainer[_Registry_pb2.ProjectMetadata]: ... def __init__( self, *, - project_metadata: collections.abc.Iterable[feast.core.Registry_pb2.ProjectMetadata] | None = ..., + project_metadata: _abc.Iterable[_Registry_pb2.ProjectMetadata] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project_metadata", b"project_metadata"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project_metadata", b"project_metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectMetadataResponse = ListProjectMetadataResponse +Global___ListProjectMetadataResponse: _TypeAlias = ListProjectMetadataResponse # noqa: Y015 -class ApplyMaterializationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApplyMaterializationRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - START_DATE_FIELD_NUMBER: builtins.int - END_DATE_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - project: builtins.str - @property - def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - commit: builtins.bool + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + START_DATE_FIELD_NUMBER: _builtins.int + END_DATE_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def start_date(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def end_date(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - project: builtins.str = ..., - start_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., - commit: builtins.bool = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + project: _builtins.str = ..., + start_date: _timestamp_pb2.Timestamp | None = ..., + end_date: _timestamp_pb2.Timestamp | None = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_date", b"end_date", "feature_view", b"feature_view", "start_date", b"start_date"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "end_date", b"end_date", "feature_view", b"feature_view", "project", b"project", "start_date", b"start_date"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_date", b"end_date", "feature_view", b"feature_view", "start_date", b"start_date"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "end_date", b"end_date", "feature_view", b"feature_view", "project", b"project", "start_date", b"start_date"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyMaterializationRequest = ApplyMaterializationRequest +Global___ApplyMaterializationRequest: _TypeAlias = ApplyMaterializationRequest # noqa: Y015 -class ApplyEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApplyEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITY_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def entity(self) -> feast.core.Entity_pb2.Entity: ... - project: builtins.str - commit: builtins.bool + ENTITY_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def entity(self) -> _Entity_pb2.Entity: ... def __init__( self, *, - entity: feast.core.Entity_pb2.Entity | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + entity: _Entity_pb2.Entity | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["entity", b"entity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "entity", b"entity", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["entity", b"entity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "entity", b"entity", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyEntityRequest = ApplyEntityRequest +Global___ApplyEntityRequest: _TypeAlias = ApplyEntityRequest # noqa: Y015 -class GetEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetEntityRequest = GetEntityRequest +Global___GetEntityRequest: _TypeAlias = GetEntityRequest # noqa: Y015 -class ListEntitiesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListEntitiesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListEntitiesRequest = ListEntitiesRequest +Global___ListEntitiesRequest: _TypeAlias = ListEntitiesRequest # noqa: Y015 -class ListEntitiesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListEntitiesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Entity_pb2.Entity]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + ENTITIES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[_Entity_pb2.Entity]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - entities: collections.abc.Iterable[feast.core.Entity_pb2.Entity] | None = ..., - pagination: global___PaginationMetadata | None = ..., + entities: _abc.Iterable[_Entity_pb2.Entity] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListEntitiesResponse = ListEntitiesResponse +Global___ListEntitiesResponse: _TypeAlias = ListEntitiesResponse # noqa: Y015 -class DeleteEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteEntityRequest = DeleteEntityRequest +Global___DeleteEntityRequest: _TypeAlias = DeleteEntityRequest # noqa: Y015 -class ApplyDataSourceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyDataSourceRequest(_message.Message): """DataSources""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DATA_SOURCE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def data_source(self) -> feast.core.DataSource_pb2.DataSource: ... - project: builtins.str - commit: builtins.bool + DATA_SOURCE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def data_source(self) -> _DataSource_pb2.DataSource: ... def __init__( self, *, - data_source: feast.core.DataSource_pb2.DataSource | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + data_source: _DataSource_pb2.DataSource | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data_source", b"data_source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "data_source", b"data_source", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_source", b"data_source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "data_source", b"data_source", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyDataSourceRequest = ApplyDataSourceRequest +Global___ApplyDataSourceRequest: _TypeAlias = ApplyDataSourceRequest # noqa: Y015 -class GetDataSourceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetDataSourceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetDataSourceRequest = GetDataSourceRequest +Global___GetDataSourceRequest: _TypeAlias = GetDataSourceRequest # noqa: Y015 -class ListDataSourcesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListDataSourcesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListDataSourcesRequest = ListDataSourcesRequest +Global___ListDataSourcesRequest: _TypeAlias = ListDataSourcesRequest # noqa: Y015 -class ListDataSourcesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListDataSourcesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATA_SOURCES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.DataSource_pb2.DataSource]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + DATA_SOURCES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def data_sources(self) -> _containers.RepeatedCompositeFieldContainer[_DataSource_pb2.DataSource]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - data_sources: collections.abc.Iterable[feast.core.DataSource_pb2.DataSource] | None = ..., - pagination: global___PaginationMetadata | None = ..., + data_sources: _abc.Iterable[_DataSource_pb2.DataSource] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data_sources", b"data_sources", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_sources", b"data_sources", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListDataSourcesResponse = ListDataSourcesResponse +Global___ListDataSourcesResponse: _TypeAlias = ListDataSourcesResponse # noqa: Y015 -class DeleteDataSourceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteDataSourceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteDataSourceRequest = DeleteDataSourceRequest +Global___DeleteDataSourceRequest: _TypeAlias = DeleteDataSourceRequest # noqa: Y015 -class ApplyFeatureViewRequest(google.protobuf.message.Message): +@_typing.final +class ApplyFeatureViewRequest(_message.Message): """FeatureViews""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def on_demand_feature_view(self) -> feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView: ... - @property - def stream_feature_view(self) -> feast.core.StreamFeatureView_pb2.StreamFeatureView: ... - project: builtins.str - commit: builtins.bool + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def on_demand_feature_view(self) -> _OnDemandFeatureView_pb2.OnDemandFeatureView: ... + @_builtins.property + def stream_feature_view(self) -> _StreamFeatureView_pb2.StreamFeatureView: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - on_demand_feature_view: feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., - stream_feature_view: feast.core.StreamFeatureView_pb2.StreamFeatureView | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + on_demand_feature_view: _OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., + stream_feature_view: _StreamFeatureView_pb2.StreamFeatureView | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["base_feature_view", b"base_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["base_feature_view", b"base_feature_view", "commit", b"commit", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "project", b"project", "stream_feature_view", b"stream_feature_view"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["base_feature_view", b"base_feature_view"]) -> typing_extensions.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view", "commit", b"commit", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "project", b"project", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_base_feature_view: _TypeAlias = _typing.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] # noqa: Y015 + _WhichOneofArgType_base_feature_view: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_base_feature_view) -> _WhichOneofReturnType_base_feature_view | None: ... -global___ApplyFeatureViewRequest = ApplyFeatureViewRequest +Global___ApplyFeatureViewRequest: _TypeAlias = ApplyFeatureViewRequest # noqa: Y015 -class GetFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureViewRequest = GetFeatureViewRequest +Global___GetFeatureViewRequest: _TypeAlias = GetFeatureViewRequest # noqa: Y015 -class ListFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureViewsRequest = ListFeatureViewsRequest +Global___ListFeatureViewsRequest: _TypeAlias = ListFeatureViewsRequest # noqa: Y015 -class ListFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureView_pb2.FeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureView_pb2.FeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - feature_views: collections.abc.Iterable[feast.core.FeatureView_pb2.FeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + feature_views: _abc.Iterable[_FeatureView_pb2.FeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_views", b"feature_views", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_views", b"feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureViewsResponse = ListFeatureViewsResponse +Global___ListFeatureViewsResponse: _TypeAlias = ListFeatureViewsResponse # noqa: Y015 -class DeleteFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteFeatureViewRequest = DeleteFeatureViewRequest +Global___DeleteFeatureViewRequest: _TypeAlias = DeleteFeatureViewRequest # noqa: Y015 -class AnyFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AnyFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def on_demand_feature_view(self) -> feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView: ... - @property - def stream_feature_view(self) -> feast.core.StreamFeatureView_pb2.StreamFeatureView: ... + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def on_demand_feature_view(self) -> _OnDemandFeatureView_pb2.OnDemandFeatureView: ... + @_builtins.property + def stream_feature_view(self) -> _StreamFeatureView_pb2.StreamFeatureView: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - on_demand_feature_view: feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., - stream_feature_view: feast.core.StreamFeatureView_pb2.StreamFeatureView | None = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + on_demand_feature_view: _OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., + stream_feature_view: _StreamFeatureView_pb2.StreamFeatureView | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> typing_extensions.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_any_feature_view: _TypeAlias = _typing.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] # noqa: Y015 + _WhichOneofArgType_any_feature_view: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_any_feature_view) -> _WhichOneofReturnType_any_feature_view | None: ... -global___AnyFeatureView = AnyFeatureView +Global___AnyFeatureView: _TypeAlias = AnyFeatureView # noqa: Y015 -class GetAnyFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetAnyFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetAnyFeatureViewRequest = GetAnyFeatureViewRequest +Global___GetAnyFeatureViewRequest: _TypeAlias = GetAnyFeatureViewRequest # noqa: Y015 -class GetAnyFeatureViewResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetAnyFeatureViewResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ANY_FEATURE_VIEW_FIELD_NUMBER: builtins.int - @property - def any_feature_view(self) -> global___AnyFeatureView: ... + ANY_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + @_builtins.property + def any_feature_view(self) -> Global___AnyFeatureView: ... def __init__( self, *, - any_feature_view: global___AnyFeatureView | None = ..., + any_feature_view: Global___AnyFeatureView | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetAnyFeatureViewResponse = GetAnyFeatureViewResponse +Global___GetAnyFeatureViewResponse: _TypeAlias = GetAnyFeatureViewResponse # noqa: Y015 -class ListAllFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListAllFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - ENTITY_FIELD_NUMBER: builtins.int - FEATURE_FIELD_NUMBER: builtins.int - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - DATA_SOURCE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - entity: builtins.str - feature: builtins.str - feature_service: builtins.str - data_source: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - entity: builtins.str = ..., - feature: builtins.str = ..., - feature_service: builtins.str = ..., - data_source: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "data_source", b"data_source", "entity", b"entity", "feature", b"feature", "feature_service", b"feature_service", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... - -global___ListAllFeatureViewsRequest = ListAllFeatureViewsRequest - -class ListAllFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - feature_views: collections.abc.Iterable[global___AnyFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_views", b"feature_views", "pagination", b"pagination"]) -> None: ... - -global___ListAllFeatureViewsResponse = ListAllFeatureViewsResponse - -class GetStreamFeatureViewRequest(google.protobuf.message.Message): + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + ENTITY_FIELD_NUMBER: _builtins.int + FEATURE_FIELD_NUMBER: _builtins.int + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + DATA_SOURCE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + entity: _builtins.str + feature: _builtins.str + feature_service: _builtins.str + data_source: _builtins.str + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + entity: _builtins.str = ..., + feature: _builtins.str = ..., + feature_service: _builtins.str = ..., + data_source: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "data_source", b"data_source", "entity", b"entity", "feature", b"feature", "feature_service", b"feature_service", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListAllFeatureViewsRequest: _TypeAlias = ListAllFeatureViewsRequest # noqa: Y015 + +@_typing.final +class ListAllFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[Global___AnyFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + feature_views: _abc.Iterable[Global___AnyFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_views", b"feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListAllFeatureViewsResponse: _TypeAlias = ListAllFeatureViewsResponse # noqa: Y015 + +@_typing.final +class GetStreamFeatureViewRequest(_message.Message): """StreamFeatureView""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetStreamFeatureViewRequest = GetStreamFeatureViewRequest +Global___GetStreamFeatureViewRequest: _TypeAlias = GetStreamFeatureViewRequest # noqa: Y015 -class ListStreamFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListStreamFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListStreamFeatureViewsRequest = ListStreamFeatureViewsRequest +Global___ListStreamFeatureViewsRequest: _TypeAlias = ListStreamFeatureViewsRequest # noqa: Y015 -class ListStreamFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListStreamFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def stream_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.StreamFeatureView_pb2.StreamFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + STREAM_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_StreamFeatureView_pb2.StreamFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - stream_feature_views: collections.abc.Iterable[feast.core.StreamFeatureView_pb2.StreamFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + stream_feature_views: _abc.Iterable[_StreamFeatureView_pb2.StreamFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "stream_feature_views", b"stream_feature_views"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "stream_feature_views", b"stream_feature_views"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListStreamFeatureViewsResponse = ListStreamFeatureViewsResponse +Global___ListStreamFeatureViewsResponse: _TypeAlias = ListStreamFeatureViewsResponse # noqa: Y015 -class GetOnDemandFeatureViewRequest(google.protobuf.message.Message): +@_typing.final +class GetOnDemandFeatureViewRequest(_message.Message): """OnDemandFeatureView""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnDemandFeatureViewRequest = GetOnDemandFeatureViewRequest +Global___GetOnDemandFeatureViewRequest: _TypeAlias = GetOnDemandFeatureViewRequest # noqa: Y015 -class ListOnDemandFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListOnDemandFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListOnDemandFeatureViewsRequest = ListOnDemandFeatureViewsRequest +Global___ListOnDemandFeatureViewsRequest: _TypeAlias = ListOnDemandFeatureViewsRequest # noqa: Y015 -class ListOnDemandFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListOnDemandFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def on_demand_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def on_demand_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_OnDemandFeatureView_pb2.OnDemandFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - on_demand_feature_views: collections.abc.Iterable[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + on_demand_feature_views: _abc.Iterable[_OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["on_demand_feature_views", b"on_demand_feature_views", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["on_demand_feature_views", b"on_demand_feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListOnDemandFeatureViewsResponse = ListOnDemandFeatureViewsResponse +Global___ListOnDemandFeatureViewsResponse: _TypeAlias = ListOnDemandFeatureViewsResponse # noqa: Y015 -class ApplyFeatureServiceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyFeatureServiceRequest(_message.Message): """FeatureServices""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_service(self) -> feast.core.FeatureService_pb2.FeatureService: ... - project: builtins.str - commit: builtins.bool + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_service(self) -> _FeatureService_pb2.FeatureService: ... def __init__( self, *, - feature_service: feast.core.FeatureService_pb2.FeatureService | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + feature_service: _FeatureService_pb2.FeatureService | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_service", b"feature_service"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "feature_service", b"feature_service", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_service", b"feature_service"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "feature_service", b"feature_service", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyFeatureServiceRequest = ApplyFeatureServiceRequest +Global___ApplyFeatureServiceRequest: _TypeAlias = ApplyFeatureServiceRequest # noqa: Y015 -class GetFeatureServiceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeatureServiceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureServiceRequest = GetFeatureServiceRequest +Global___GetFeatureServiceRequest: _TypeAlias = GetFeatureServiceRequest # noqa: Y015 -class ListFeatureServicesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureServicesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - feature_view: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + feature_view: _builtins.str + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - feature_view: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + feature_view: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureServicesRequest = ListFeatureServicesRequest +Global___ListFeatureServicesRequest: _TypeAlias = ListFeatureServicesRequest # noqa: Y015 -class ListFeatureServicesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureServicesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_SERVICES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureService_pb2.FeatureService]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + FEATURE_SERVICES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_services(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureService_pb2.FeatureService]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - feature_services: collections.abc.Iterable[feast.core.FeatureService_pb2.FeatureService] | None = ..., - pagination: global___PaginationMetadata | None = ..., + feature_services: _abc.Iterable[_FeatureService_pb2.FeatureService] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_services", b"feature_services", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_services", b"feature_services", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureServicesResponse = ListFeatureServicesResponse +Global___ListFeatureServicesResponse: _TypeAlias = ListFeatureServicesResponse # noqa: Y015 -class DeleteFeatureServiceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteFeatureServiceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteFeatureServiceRequest = DeleteFeatureServiceRequest +Global___DeleteFeatureServiceRequest: _TypeAlias = DeleteFeatureServiceRequest # noqa: Y015 -class ApplySavedDatasetRequest(google.protobuf.message.Message): +@_typing.final +class ApplySavedDatasetRequest(_message.Message): """SavedDataset""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SAVED_DATASET_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def saved_dataset(self) -> feast.core.SavedDataset_pb2.SavedDataset: ... - project: builtins.str - commit: builtins.bool + SAVED_DATASET_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def saved_dataset(self) -> _SavedDataset_pb2.SavedDataset: ... def __init__( self, *, - saved_dataset: feast.core.SavedDataset_pb2.SavedDataset | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + saved_dataset: _SavedDataset_pb2.SavedDataset | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["saved_dataset", b"saved_dataset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project", "saved_dataset", b"saved_dataset"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["saved_dataset", b"saved_dataset"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project", "saved_dataset", b"saved_dataset"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplySavedDatasetRequest = ApplySavedDatasetRequest +Global___ApplySavedDatasetRequest: _TypeAlias = ApplySavedDatasetRequest # noqa: Y015 -class GetSavedDatasetRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSavedDatasetRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetSavedDatasetRequest = GetSavedDatasetRequest +Global___GetSavedDatasetRequest: _TypeAlias = GetSavedDatasetRequest # noqa: Y015 -class ListSavedDatasetsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListSavedDatasetsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListSavedDatasetsRequest = ListSavedDatasetsRequest +Global___ListSavedDatasetsRequest: _TypeAlias = ListSavedDatasetsRequest # noqa: Y015 -class ListSavedDatasetsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListSavedDatasetsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SAVED_DATASETS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def saved_datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.SavedDataset_pb2.SavedDataset]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + SAVED_DATASETS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def saved_datasets(self) -> _containers.RepeatedCompositeFieldContainer[_SavedDataset_pb2.SavedDataset]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - saved_datasets: collections.abc.Iterable[feast.core.SavedDataset_pb2.SavedDataset] | None = ..., - pagination: global___PaginationMetadata | None = ..., + saved_datasets: _abc.Iterable[_SavedDataset_pb2.SavedDataset] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "saved_datasets", b"saved_datasets"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "saved_datasets", b"saved_datasets"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListSavedDatasetsResponse = ListSavedDatasetsResponse +Global___ListSavedDatasetsResponse: _TypeAlias = ListSavedDatasetsResponse # noqa: Y015 -class DeleteSavedDatasetRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteSavedDatasetRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteSavedDatasetRequest = DeleteSavedDatasetRequest +Global___DeleteSavedDatasetRequest: _TypeAlias = DeleteSavedDatasetRequest # noqa: Y015 -class ApplyValidationReferenceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyValidationReferenceRequest(_message.Message): """ValidationReference""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - VALIDATION_REFERENCE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def validation_reference(self) -> feast.core.ValidationProfile_pb2.ValidationReference: ... - project: builtins.str - commit: builtins.bool + VALIDATION_REFERENCE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def validation_reference(self) -> _ValidationProfile_pb2.ValidationReference: ... def __init__( self, *, - validation_reference: feast.core.ValidationProfile_pb2.ValidationReference | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + validation_reference: _ValidationProfile_pb2.ValidationReference | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["validation_reference", b"validation_reference"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project", "validation_reference", b"validation_reference"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["validation_reference", b"validation_reference"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project", "validation_reference", b"validation_reference"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyValidationReferenceRequest = ApplyValidationReferenceRequest +Global___ApplyValidationReferenceRequest: _TypeAlias = ApplyValidationReferenceRequest # noqa: Y015 -class GetValidationReferenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetValidationReferenceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetValidationReferenceRequest = GetValidationReferenceRequest +Global___GetValidationReferenceRequest: _TypeAlias = GetValidationReferenceRequest # noqa: Y015 -class ListValidationReferencesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListValidationReferencesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListValidationReferencesRequest = ListValidationReferencesRequest +Global___ListValidationReferencesRequest: _TypeAlias = ListValidationReferencesRequest # noqa: Y015 -class ListValidationReferencesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListValidationReferencesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VALIDATION_REFERENCES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def validation_references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.ValidationProfile_pb2.ValidationReference]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + VALIDATION_REFERENCES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def validation_references(self) -> _containers.RepeatedCompositeFieldContainer[_ValidationProfile_pb2.ValidationReference]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - validation_references: collections.abc.Iterable[feast.core.ValidationProfile_pb2.ValidationReference] | None = ..., - pagination: global___PaginationMetadata | None = ..., + validation_references: _abc.Iterable[_ValidationProfile_pb2.ValidationReference] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validation_references", b"validation_references"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "validation_references", b"validation_references"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListValidationReferencesResponse = ListValidationReferencesResponse +Global___ListValidationReferencesResponse: _TypeAlias = ListValidationReferencesResponse # noqa: Y015 -class DeleteValidationReferenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteValidationReferenceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteValidationReferenceRequest = DeleteValidationReferenceRequest +Global___DeleteValidationReferenceRequest: _TypeAlias = DeleteValidationReferenceRequest # noqa: Y015 -class ApplyPermissionRequest(google.protobuf.message.Message): +@_typing.final +class ApplyPermissionRequest(_message.Message): """Permissions""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PERMISSION_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def permission(self) -> feast.core.Permission_pb2.Permission: ... - project: builtins.str - commit: builtins.bool + PERMISSION_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def permission(self) -> _Permission_pb2.Permission: ... def __init__( self, *, - permission: feast.core.Permission_pb2.Permission | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + permission: _Permission_pb2.Permission | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "permission", b"permission", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["permission", b"permission"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "permission", b"permission", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyPermissionRequest = ApplyPermissionRequest +Global___ApplyPermissionRequest: _TypeAlias = ApplyPermissionRequest # noqa: Y015 -class GetPermissionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetPermissionRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetPermissionRequest = GetPermissionRequest +Global___GetPermissionRequest: _TypeAlias = GetPermissionRequest # noqa: Y015 -class ListPermissionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListPermissionsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListPermissionsRequest = ListPermissionsRequest +Global___ListPermissionsRequest: _TypeAlias = ListPermissionsRequest # noqa: Y015 -class ListPermissionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListPermissionsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PERMISSIONS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Permission_pb2.Permission]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + PERMISSIONS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[_Permission_pb2.Permission]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - permissions: collections.abc.Iterable[feast.core.Permission_pb2.Permission] | None = ..., - pagination: global___PaginationMetadata | None = ..., + permissions: _abc.Iterable[_Permission_pb2.Permission] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "permissions", b"permissions"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "permissions", b"permissions"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListPermissionsResponse = ListPermissionsResponse +Global___ListPermissionsResponse: _TypeAlias = ListPermissionsResponse # noqa: Y015 -class DeletePermissionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeletePermissionRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeletePermissionRequest = DeletePermissionRequest +Global___DeletePermissionRequest: _TypeAlias = DeletePermissionRequest # noqa: Y015 -class ApplyProjectRequest(google.protobuf.message.Message): +@_typing.final +class ApplyProjectRequest(_message.Message): """Projects""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def project(self) -> feast.core.Project_pb2.Project: ... - commit: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + commit: _builtins.bool + @_builtins.property + def project(self) -> _Project_pb2.Project: ... def __init__( self, *, - project: feast.core.Project_pb2.Project | None = ..., - commit: builtins.bool = ..., + project: _Project_pb2.Project | None = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["project", b"project"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["project", b"project"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyProjectRequest = ApplyProjectRequest +Global___ApplyProjectRequest: _TypeAlias = ApplyProjectRequest # noqa: Y015 -class GetProjectRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetProjectRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetProjectRequest = GetProjectRequest +Global___GetProjectRequest: _TypeAlias = GetProjectRequest # noqa: Y015 -class ListProjectsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectsRequest = ListProjectsRequest +Global___ListProjectsRequest: _TypeAlias = ListProjectsRequest # noqa: Y015 -class ListProjectsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECTS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Project_pb2.Project]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + PROJECTS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def projects(self) -> _containers.RepeatedCompositeFieldContainer[_Project_pb2.Project]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - projects: collections.abc.Iterable[feast.core.Project_pb2.Project] | None = ..., - pagination: global___PaginationMetadata | None = ..., + projects: _abc.Iterable[_Project_pb2.Project] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "projects", b"projects"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "projects", b"projects"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectsResponse = ListProjectsResponse +Global___ListProjectsResponse: _TypeAlias = ListProjectsResponse # noqa: Y015 -class DeleteProjectRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteProjectRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteProjectRequest = DeleteProjectRequest +Global___DeleteProjectRequest: _TypeAlias = DeleteProjectRequest # noqa: Y015 -class EntityReference(google.protobuf.message.Message): +@_typing.final +class EntityReference(_message.Message): """Lineage""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - type: builtins.str + TYPE_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + type: _builtins.str """"dataSource", "entity", "featureView", "featureService" """ - name: builtins.str + name: _builtins.str def __init__( self, *, - type: builtins.str = ..., - name: builtins.str = ..., + type: _builtins.str = ..., + name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "type", b"type"]) -> None: ... - -global___EntityReference = EntityReference + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -class EntityRelation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +Global___EntityReference: _TypeAlias = EntityReference # noqa: Y015 - SOURCE_FIELD_NUMBER: builtins.int - TARGET_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___EntityReference: ... - @property - def target(self) -> global___EntityReference: ... +@_typing.final +class EntityRelation(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SOURCE_FIELD_NUMBER: _builtins.int + TARGET_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___EntityReference: ... + @_builtins.property + def target(self) -> Global___EntityReference: ... def __init__( self, *, - source: global___EntityReference | None = ..., - target: global___EntityReference | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source", b"source", "target", b"target"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source", b"source", "target", b"target"]) -> None: ... - -global___EntityRelation = EntityRelation - -class GetRegistryLineageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + source: Global___EntityReference | None = ..., + target: Global___EntityReference | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source", "target", b"target"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source", "target", b"target"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___EntityRelation: _TypeAlias = EntityRelation # noqa: Y015 + +@_typing.final +class GetRegistryLineageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - FILTER_OBJECT_TYPE_FIELD_NUMBER: builtins.int - FILTER_OBJECT_NAME_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - filter_object_type: builtins.str - filter_object_name: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + FILTER_OBJECT_TYPE_FIELD_NUMBER: _builtins.int + FILTER_OBJECT_NAME_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + filter_object_type: _builtins.str + filter_object_name: _builtins.str + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - filter_object_type: builtins.str = ..., - filter_object_name: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + filter_object_type: _builtins.str = ..., + filter_object_name: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "filter_object_name", b"filter_object_name", "filter_object_type", b"filter_object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "filter_object_name", b"filter_object_name", "filter_object_type", b"filter_object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetRegistryLineageRequest = GetRegistryLineageRequest +Global___GetRegistryLineageRequest: _TypeAlias = GetRegistryLineageRequest # noqa: Y015 -class GetRegistryLineageResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetRegistryLineageResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RELATIONSHIPS_FIELD_NUMBER: builtins.int - INDIRECT_RELATIONSHIPS_FIELD_NUMBER: builtins.int - RELATIONSHIPS_PAGINATION_FIELD_NUMBER: builtins.int - INDIRECT_RELATIONSHIPS_PAGINATION_FIELD_NUMBER: builtins.int - @property - def relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def indirect_relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def relationships_pagination(self) -> global___PaginationMetadata: ... - @property - def indirect_relationships_pagination(self) -> global___PaginationMetadata: ... + RELATIONSHIPS_FIELD_NUMBER: _builtins.int + INDIRECT_RELATIONSHIPS_FIELD_NUMBER: _builtins.int + RELATIONSHIPS_PAGINATION_FIELD_NUMBER: _builtins.int + INDIRECT_RELATIONSHIPS_PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def indirect_relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def relationships_pagination(self) -> Global___PaginationMetadata: ... + @_builtins.property + def indirect_relationships_pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - indirect_relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - relationships_pagination: global___PaginationMetadata | None = ..., - indirect_relationships_pagination: global___PaginationMetadata | None = ..., + relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + indirect_relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + relationships_pagination: Global___PaginationMetadata | None = ..., + indirect_relationships_pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships_pagination", b"relationships_pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["indirect_relationships", b"indirect_relationships", "indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships", b"relationships", "relationships_pagination", b"relationships_pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships_pagination", b"relationships_pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["indirect_relationships", b"indirect_relationships", "indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships", b"relationships", "relationships_pagination", b"relationships_pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetRegistryLineageResponse = GetRegistryLineageResponse +Global___GetRegistryLineageResponse: _TypeAlias = GetRegistryLineageResponse # noqa: Y015 -class GetObjectRelationshipsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - OBJECT_TYPE_FIELD_NUMBER: builtins.int - OBJECT_NAME_FIELD_NUMBER: builtins.int - INCLUDE_INDIRECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - object_type: builtins.str - object_name: builtins.str - include_indirect: builtins.bool - allow_cache: builtins.bool - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - object_type: builtins.str = ..., - object_name: builtins.str = ..., - include_indirect: builtins.bool = ..., - allow_cache: builtins.bool = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "include_indirect", b"include_indirect", "object_name", b"object_name", "object_type", b"object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... - -global___GetObjectRelationshipsRequest = GetObjectRelationshipsRequest - -class GetObjectRelationshipsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RELATIONSHIPS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "relationships", b"relationships"]) -> None: ... - -global___GetObjectRelationshipsResponse = GetObjectRelationshipsResponse - -class Feature(google.protobuf.message.Message): +@_typing.final +class GetObjectRelationshipsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + OBJECT_TYPE_FIELD_NUMBER: _builtins.int + OBJECT_NAME_FIELD_NUMBER: _builtins.int + INCLUDE_INDIRECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + object_type: _builtins.str + object_name: _builtins.str + include_indirect: _builtins.bool + allow_cache: _builtins.bool + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + object_type: _builtins.str = ..., + object_name: _builtins.str = ..., + include_indirect: _builtins.bool = ..., + allow_cache: _builtins.bool = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "include_indirect", b"include_indirect", "object_name", b"object_name", "object_type", b"object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetObjectRelationshipsRequest: _TypeAlias = GetObjectRelationshipsRequest # noqa: Y015 + +@_typing.final +class GetObjectRelationshipsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RELATIONSHIPS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "relationships", b"relationships"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetObjectRelationshipsResponse: _TypeAlias = GetObjectRelationshipsResponse # noqa: Y015 + +@_typing.final +class Feature(_message.Message): """Feature messages""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str - feature_view: builtins.str - type: builtins.str - description: builtins.str - owner: builtins.str - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - def __init__( - self, - *, - name: builtins.str = ..., - feature_view: builtins.str = ..., - type: builtins.str = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view", b"feature_view", "last_updated_timestamp", b"last_updated_timestamp", "name", b"name", "owner", b"owner", "tags", b"tags", "type", b"type"]) -> None: ... - -global___Feature = Feature - -class ListFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - feature_view: builtins.str - name: builtins.str - allow_cache: builtins.bool - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - feature_view: builtins.str = ..., - name: builtins.str = ..., - allow_cache: builtins.bool = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... - -global___ListFeaturesRequest = ListFeaturesRequest - -class ListFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - features: collections.abc.Iterable[global___Feature] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["features", b"features", "pagination", b"pagination"]) -> None: ... - -global___ListFeaturesResponse = ListFeaturesResponse - -class GetFeatureRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - feature_view: builtins.str - name: builtins.str - allow_cache: builtins.bool - def __init__( - self, - *, - project: builtins.str = ..., - feature_view: builtins.str = ..., - name: builtins.str = ..., - allow_cache: builtins.bool = ..., + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str + feature_view: _builtins.str + type: _builtins.str + description: _builtins.str + owner: _builtins.str + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + name: _builtins.str = ..., + feature_view: _builtins.str = ..., + type: _builtins.str = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view", b"feature_view", "last_updated_timestamp", b"last_updated_timestamp", "name", b"name", "owner", b"owner", "tags", b"tags", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___Feature: _TypeAlias = Feature # noqa: Y015 + +@_typing.final +class ListFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + feature_view: _builtins.str + name: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + feature_view: _builtins.str = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListFeaturesRequest: _TypeAlias = ListFeaturesRequest # noqa: Y015 + +@_typing.final +class ListFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[Global___Feature]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + features: _abc.Iterable[Global___Feature] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["features", b"features", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListFeaturesResponse: _TypeAlias = ListFeaturesResponse # noqa: Y015 + +@_typing.final +class GetFeatureRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + feature_view: _builtins.str + name: _builtins.str + allow_cache: _builtins.bool + def __init__( + self, + *, + project: _builtins.str = ..., + feature_view: _builtins.str = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureRequest = GetFeatureRequest +Global___GetFeatureRequest: _TypeAlias = GetFeatureRequest # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi index 2e4dcc7ab18..72099b0ec59 100644 --- a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi @@ -2,96 +2,107 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.serving.ServingService_pb2 -import feast.types.EntityKey_pb2 -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.protos.feast.serving import ServingService_pb2 as _ServingService_pb2 +from feast.protos.feast.types import EntityKey_pb2 as _EntityKey_pb2 +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class ConnectorFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectorFeature(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - REFERENCE_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - @property - def reference(self) -> feast.serving.ServingService_pb2.FeatureReferenceV2: ... - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def value(self) -> _feast_types_Value_pb2.Value: ... + REFERENCE_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + @_builtins.property + def reference(self) -> _ServingService_pb2.FeatureReferenceV2: ... + @_builtins.property + def timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - reference: feast.serving.ServingService_pb2.FeatureReferenceV2 | None = ..., - timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - value: _feast_types_Value_pb2.Value | None = ..., + reference: _ServingService_pb2.FeatureReferenceV2 | None = ..., + timestamp: _timestamp_pb2.Timestamp | None = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ConnectorFeature = ConnectorFeature +Global___ConnectorFeature: _TypeAlias = ConnectorFeature # noqa: Y015 -class ConnectorFeatureList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectorFeatureList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURELIST_FIELD_NUMBER: builtins.int - @property - def featureList(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeature]: ... + FEATURELIST_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureList(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeature]: ... def __init__( self, *, - featureList: collections.abc.Iterable[global___ConnectorFeature] | None = ..., + featureList: _abc.Iterable[Global___ConnectorFeature] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureList", b"featureList"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureList", b"featureList"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ConnectorFeatureList = ConnectorFeatureList +Global___ConnectorFeatureList: _TypeAlias = ConnectorFeatureList # noqa: Y015 -class OnlineReadRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnlineReadRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITYKEYS_FIELD_NUMBER: builtins.int - VIEW_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - @property - def entityKeys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.types.EntityKey_pb2.EntityKey]: ... - view: builtins.str - @property - def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + ENTITYKEYS_FIELD_NUMBER: _builtins.int + VIEW_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + view: _builtins.str + @_builtins.property + def entityKeys(self) -> _containers.RepeatedCompositeFieldContainer[_EntityKey_pb2.EntityKey]: ... + @_builtins.property + def features(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - entityKeys: collections.abc.Iterable[feast.types.EntityKey_pb2.EntityKey] | None = ..., - view: builtins.str = ..., - features: collections.abc.Iterable[builtins.str] | None = ..., + entityKeys: _abc.Iterable[_EntityKey_pb2.EntityKey] | None = ..., + view: _builtins.str = ..., + features: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnlineReadRequest = OnlineReadRequest +Global___OnlineReadRequest: _TypeAlias = OnlineReadRequest # noqa: Y015 -class OnlineReadResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnlineReadResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESULTS_FIELD_NUMBER: builtins.int - @property - def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeatureList]: ... + RESULTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeatureList]: ... def __init__( self, *, - results: collections.abc.Iterable[global___ConnectorFeatureList] | None = ..., + results: _abc.Iterable[Global___ConnectorFeatureList] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["results", b"results"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnlineReadResponse = OnlineReadResponse +Global___OnlineReadResponse: _TypeAlias = OnlineReadResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi index a028d96aeae..bb939e27d6d 100644 --- a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi @@ -2,162 +2,182 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class PushRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PushRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class TypedFeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> _feast_types_Value_pb2.Value: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class TypedFeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - ALLOW_REGISTRY_CACHE_FIELD_NUMBER: builtins.int - TO_FIELD_NUMBER: builtins.int - TYPED_FEATURES_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - stream_feature_view: builtins.str - allow_registry_cache: builtins.bool - to: builtins.str - @property - def typed_features(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, _feast_types_Value_pb2.Value]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ALLOW_REGISTRY_CACHE_FIELD_NUMBER: _builtins.int + TO_FIELD_NUMBER: _builtins.int + TYPED_FEATURES_FIELD_NUMBER: _builtins.int + stream_feature_view: _builtins.str + allow_registry_cache: _builtins.bool + to: _builtins.str + @_builtins.property + def features(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def typed_features(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: ... def __init__( self, *, - features: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - stream_feature_view: builtins.str = ..., - allow_registry_cache: builtins.bool = ..., - to: builtins.str = ..., - typed_features: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.Value] | None = ..., + features: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + stream_feature_view: _builtins.str = ..., + allow_registry_cache: _builtins.bool = ..., + to: _builtins.str = ..., + typed_features: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_registry_cache", b"allow_registry_cache", "features", b"features", "stream_feature_view", b"stream_feature_view", "to", b"to", "typed_features", b"typed_features"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_registry_cache", b"allow_registry_cache", "features", b"features", "stream_feature_view", b"stream_feature_view", "to", b"to", "typed_features", b"typed_features"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PushRequest = PushRequest +Global___PushRequest: _TypeAlias = PushRequest # noqa: Y015 -class PushResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PushResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATUS_FIELD_NUMBER: builtins.int - status: builtins.bool + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool def __init__( self, *, - status: builtins.bool = ..., + status: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PushResponse = PushResponse +Global___PushResponse: _TypeAlias = PushResponse # noqa: Y015 -class WriteToOnlineStoreRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class WriteToOnlineStoreRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class TypedFeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> _feast_types_Value_pb2.Value: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class TypedFeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - ALLOW_REGISTRY_CACHE_FIELD_NUMBER: builtins.int - TYPED_FEATURES_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - feature_view_name: builtins.str - allow_registry_cache: builtins.bool - @property - def typed_features(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, _feast_types_Value_pb2.Value]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + ALLOW_REGISTRY_CACHE_FIELD_NUMBER: _builtins.int + TYPED_FEATURES_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str + allow_registry_cache: _builtins.bool + @_builtins.property + def features(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def typed_features(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: ... def __init__( self, *, - features: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - feature_view_name: builtins.str = ..., - allow_registry_cache: builtins.bool = ..., - typed_features: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.Value] | None = ..., + features: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + feature_view_name: _builtins.str = ..., + allow_registry_cache: _builtins.bool = ..., + typed_features: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_registry_cache", b"allow_registry_cache", "feature_view_name", b"feature_view_name", "features", b"features", "typed_features", b"typed_features"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_registry_cache", b"allow_registry_cache", "feature_view_name", b"feature_view_name", "features", b"features", "typed_features", b"typed_features"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___WriteToOnlineStoreRequest = WriteToOnlineStoreRequest +Global___WriteToOnlineStoreRequest: _TypeAlias = WriteToOnlineStoreRequest # noqa: Y015 -class WriteToOnlineStoreResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class WriteToOnlineStoreResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATUS_FIELD_NUMBER: builtins.int - status: builtins.bool + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool def __init__( self, *, - status: builtins.bool = ..., + status: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___WriteToOnlineStoreResponse = WriteToOnlineStoreResponse +Global___WriteToOnlineStoreResponse: _TypeAlias = WriteToOnlineStoreResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi index bc65222ee3a..1855b8b5b81 100644 --- a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi @@ -16,30 +16,31 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _FieldStatus: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _FieldStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _FieldStatusEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: _FieldStatus.ValueType # 0 """Status is unset for this field.""" PRESENT: _FieldStatus.ValueType # 1 @@ -77,300 +78,345 @@ OUTSIDE_MAX_AGE: FieldStatus.ValueType # 4 """Values could be found for entity key, but field values are outside the maximum allowable range. """ -global___FieldStatus = FieldStatus +Global___FieldStatus: _TypeAlias = FieldStatus # noqa: Y015 -class GetFeastServingInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeastServingInfoRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... -global___GetFeastServingInfoRequest = GetFeastServingInfoRequest +Global___GetFeastServingInfoRequest: _TypeAlias = GetFeastServingInfoRequest # noqa: Y015 -class GetFeastServingInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeastServingInfoResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int - version: builtins.str + VERSION_FIELD_NUMBER: _builtins.int + version: _builtins.str """Feast version of this serving deployment.""" def __init__( self, *, - version: builtins.str = ..., + version: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["version", b"version"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeastServingInfoResponse = GetFeastServingInfoResponse +Global___GetFeastServingInfoResponse: _TypeAlias = GetFeastServingInfoResponse # noqa: Y015 -class FeatureReferenceV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureReferenceV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - FEATURE_NAME_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + FEATURE_NAME_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str """Name of the Feature View to retrieve the feature from.""" - feature_name: builtins.str + feature_name: _builtins.str """Name of the Feature to retrieve the feature from.""" def __init__( self, *, - feature_view_name: builtins.str = ..., - feature_name: builtins.str = ..., + feature_view_name: _builtins.str = ..., + feature_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_name", b"feature_name", "feature_view_name", b"feature_view_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_name", b"feature_name", "feature_view_name", b"feature_view_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureReferenceV2 = FeatureReferenceV2 +Global___FeatureReferenceV2: _TypeAlias = FeatureReferenceV2 # noqa: Y015 -class GetOnlineFeaturesRequestV2(google.protobuf.message.Message): +@_typing.final +class GetOnlineFeaturesRequestV2(_message.Message): """ToDo (oleksii): remove this message (since it's not used) and move EntityRow on package level""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class EntityRow(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class EntityRow(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FieldsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FieldsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> _feast_types_Value_pb2.Value: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - TIMESTAMP_FIELD_NUMBER: builtins.int - FIELDS_FIELD_NUMBER: builtins.int - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + TIMESTAMP_FIELD_NUMBER: _builtins.int + FIELDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def timestamp(self) -> _timestamp_pb2.Timestamp: """Request timestamp of this row. This value will be used, together with maxAge, to determine feature staleness. """ - @property - def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, _feast_types_Value_pb2.Value]: + + @_builtins.property + def fields(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: """Map containing mapping of entity name to entity value.""" + def __init__( self, *, - timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - fields: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.Value] | None = ..., + timestamp: _timestamp_pb2.Timestamp | None = ..., + fields: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields", "timestamp", b"timestamp"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - ENTITY_ROWS_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureReferenceV2]: + _HasFieldArgType: _TypeAlias = _typing.Literal["timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["fields", b"fields", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + ENTITY_ROWS_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + project: _builtins.str + """Optional field to specify project name override. If specified, uses the + given project for retrieval. Overrides the projects specified in + Feature References if both are specified. + """ + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureReferenceV2]: """List of features that are being retrieved""" - @property - def entity_rows(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetOnlineFeaturesRequestV2.EntityRow]: + + @_builtins.property + def entity_rows(self) -> _containers.RepeatedCompositeFieldContainer[Global___GetOnlineFeaturesRequestV2.EntityRow]: """List of entity rows, containing entity id and timestamp data. Used during retrieval of feature rows and for joining feature rows into a final dataset """ - project: builtins.str - """Optional field to specify project name override. If specified, uses the - given project for retrieval. Overrides the projects specified in - Feature References if both are specified. - """ + def __init__( self, *, - features: collections.abc.Iterable[global___FeatureReferenceV2] | None = ..., - entity_rows: collections.abc.Iterable[global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., - project: builtins.str = ..., + features: _abc.Iterable[Global___FeatureReferenceV2] | None = ..., + entity_rows: _abc.Iterable[Global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., + project: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_rows", b"entity_rows", "features", b"features", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_rows", b"entity_rows", "features", b"features", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesRequestV2 = GetOnlineFeaturesRequestV2 +Global___GetOnlineFeaturesRequestV2: _TypeAlias = GetOnlineFeaturesRequestV2 # noqa: Y015 -class FeatureList(google.protobuf.message.Message): +@_typing.final +class FeatureList(_message.Message): """In JSON "val" field can be omitted""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.str] | None = ..., + val: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureList = FeatureList +Global___FeatureList: _TypeAlias = FeatureList # noqa: Y015 -class GetOnlineFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetOnlineFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class EntitiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class EntitiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> _feast_types_Value_pb2.RepeatedValue: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.RepeatedValue: ... def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.RepeatedValue | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.RepeatedValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class RequestContextEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> _feast_types_Value_pb2.RepeatedValue: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class RequestContextEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.RepeatedValue: ... def __init__( self, *, - key: builtins.str = ..., - value: _feast_types_Value_pb2.RepeatedValue | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.RepeatedValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FULL_FEATURE_NAMES_FIELD_NUMBER: builtins.int - REQUEST_CONTEXT_FIELD_NUMBER: builtins.int - INCLUDE_FEATURE_VIEW_VERSION_METADATA_FIELD_NUMBER: builtins.int - feature_service: builtins.str - @property - def features(self) -> global___FeatureList: ... - @property - def entities(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, _feast_types_Value_pb2.RepeatedValue]: + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FULL_FEATURE_NAMES_FIELD_NUMBER: _builtins.int + REQUEST_CONTEXT_FIELD_NUMBER: _builtins.int + INCLUDE_FEATURE_VIEW_VERSION_METADATA_FIELD_NUMBER: _builtins.int + feature_service: _builtins.str + full_feature_names: _builtins.bool + include_feature_view_version_metadata: _builtins.bool + """Whether to include feature view version metadata in the response""" + @_builtins.property + def features(self) -> Global___FeatureList: ... + @_builtins.property + def entities(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.RepeatedValue]: """The entity data is specified in a columnar format A map of entity name -> list of values """ - full_feature_names: builtins.bool - @property - def request_context(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, _feast_types_Value_pb2.RepeatedValue]: + + @_builtins.property + def request_context(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.RepeatedValue]: """Context for OnDemand Feature Transformation (was moved to dedicated parameter to avoid unnecessary separation logic on serving side) A map of variable name -> list of values """ - include_feature_view_version_metadata: builtins.bool - """Whether to include feature view version metadata in the response""" + def __init__( self, *, - feature_service: builtins.str = ..., - features: global___FeatureList | None = ..., - entities: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.RepeatedValue] | None = ..., - full_feature_names: builtins.bool = ..., - request_context: collections.abc.Mapping[builtins.str, _feast_types_Value_pb2.RepeatedValue] | None = ..., - include_feature_view_version_metadata: builtins.bool = ..., + feature_service: _builtins.str = ..., + features: Global___FeatureList | None = ..., + entities: _abc.Mapping[_builtins.str, _Value_pb2.RepeatedValue] | None = ..., + full_feature_names: _builtins.bool = ..., + request_context: _abc.Mapping[_builtins.str, _Value_pb2.RepeatedValue] | None = ..., + include_feature_view_version_metadata: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_service", b"feature_service", "features", b"features", "kind", b"kind"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities", "feature_service", b"feature_service", "features", b"features", "full_feature_names", b"full_feature_names", "include_feature_view_version_metadata", b"include_feature_view_version_metadata", "kind", b"kind", "request_context", b"request_context"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["feature_service", "features"] | None: ... - -global___GetOnlineFeaturesRequest = GetOnlineFeaturesRequest - -class GetOnlineFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class FeatureVector(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - STATUSES_FIELD_NUMBER: builtins.int - EVENT_TIMESTAMPS_FIELD_NUMBER: builtins.int - @property - def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[_feast_types_Value_pb2.Value]: ... - @property - def statuses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___FieldStatus.ValueType]: ... - @property - def event_timestamps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_service", b"feature_service", "features", b"features", "kind", b"kind"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities", "feature_service", b"feature_service", "features", b"features", "full_feature_names", b"full_feature_names", "include_feature_view_version_metadata", b"include_feature_view_version_metadata", "kind", b"kind", "request_context", b"request_context"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["feature_service", "features"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___GetOnlineFeaturesRequest: _TypeAlias = GetOnlineFeaturesRequest # noqa: Y015 + +@_typing.final +class GetOnlineFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class FeatureVector(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + VALUES_FIELD_NUMBER: _builtins.int + STATUSES_FIELD_NUMBER: _builtins.int + EVENT_TIMESTAMPS_FIELD_NUMBER: _builtins.int + @_builtins.property + def values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... + @_builtins.property + def statuses(self) -> _containers.RepeatedScalarFieldContainer[Global___FieldStatus.ValueType]: ... + @_builtins.property + def event_timestamps(self) -> _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp]: ... def __init__( self, *, - values: collections.abc.Iterable[_feast_types_Value_pb2.Value] | None = ..., - statuses: collections.abc.Iterable[global___FieldStatus.ValueType] | None = ..., - event_timestamps: collections.abc.Iterable[google.protobuf.timestamp_pb2.Timestamp] | None = ..., + values: _abc.Iterable[_Value_pb2.Value] | None = ..., + statuses: _abc.Iterable[Global___FieldStatus.ValueType] | None = ..., + event_timestamps: _abc.Iterable[_timestamp_pb2.Timestamp] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["event_timestamps", b"event_timestamps", "statuses", b"statuses", "values", b"values"]) -> None: ... - - METADATA_FIELD_NUMBER: builtins.int - RESULTS_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - @property - def metadata(self) -> global___GetOnlineFeaturesResponseMetadata: ... - @property - def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetOnlineFeaturesResponse.FeatureVector]: + _ClearFieldArgType: _TypeAlias = _typing.Literal["event_timestamps", b"event_timestamps", "statuses", b"statuses", "values", b"values"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + METADATA_FIELD_NUMBER: _builtins.int + RESULTS_FIELD_NUMBER: _builtins.int + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool + @_builtins.property + def metadata(self) -> Global___GetOnlineFeaturesResponseMetadata: ... + @_builtins.property + def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___GetOnlineFeaturesResponse.FeatureVector]: """Length of "results" array should match length of requested features. We also preserve the same order of features here as in metadata.feature_names """ - status: builtins.bool + def __init__( self, *, - metadata: global___GetOnlineFeaturesResponseMetadata | None = ..., - results: collections.abc.Iterable[global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., - status: builtins.bool = ..., + metadata: Global___GetOnlineFeaturesResponseMetadata | None = ..., + results: _abc.Iterable[Global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., + status: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "results", b"results", "status", b"status"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "results", b"results", "status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesResponse = GetOnlineFeaturesResponse +Global___GetOnlineFeaturesResponse: _TypeAlias = GetOnlineFeaturesResponse # noqa: Y015 -class FeatureViewMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + name: _builtins.str """Feature view name (e.g., "driver_stats")""" - version: builtins.int + version: _builtins.int """Version number (e.g., 2)""" def __init__( self, *, - name: builtins.str = ..., - version: builtins.int = ..., + name: _builtins.str = ..., + version: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "version", b"version"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewMetadata = FeatureViewMetadata +Global___FeatureViewMetadata: _TypeAlias = FeatureViewMetadata # noqa: Y015 -class GetOnlineFeaturesResponseMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetOnlineFeaturesResponseMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_NAMES_FIELD_NUMBER: builtins.int - FEATURE_VIEW_METADATA_FIELD_NUMBER: builtins.int - @property - def feature_names(self) -> global___FeatureList: + FEATURE_NAMES_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_METADATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_names(self) -> Global___FeatureList: """Clean feature names without @v2 syntax""" - @property - def feature_view_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewMetadata]: + + @_builtins.property + def feature_view_metadata(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewMetadata]: """Only populated when requested""" + def __init__( self, *, - feature_names: global___FeatureList | None = ..., - feature_view_metadata: collections.abc.Iterable[global___FeatureViewMetadata] | None = ..., + feature_names: Global___FeatureList | None = ..., + feature_view_metadata: _abc.Iterable[Global___FeatureViewMetadata] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_names", b"feature_names"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_names", b"feature_names", "feature_view_metadata", b"feature_view_metadata"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_names", b"feature_names"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_names", b"feature_names", "feature_view_metadata", b"feature_view_metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesResponseMetadata = GetOnlineFeaturesResponseMetadata +Global___GetOnlineFeaturesResponseMetadata: _TypeAlias = GetOnlineFeaturesResponseMetadata # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi index 3e0752b7bdd..f21ebfd05f8 100644 --- a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi @@ -16,26 +16,27 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _TransformationServiceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TransformationServiceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TransformationServiceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSFORMATION_SERVICE_TYPE_INVALID: _TransformationServiceType.ValueType # 0 TRANSFORMATION_SERVICE_TYPE_PYTHON: _TransformationServiceType.ValueType # 1 TRANSFORMATION_SERVICE_TYPE_CUSTOM: _TransformationServiceType.ValueType # 100 @@ -45,92 +46,106 @@ class TransformationServiceType(_TransformationServiceType, metaclass=_Transform TRANSFORMATION_SERVICE_TYPE_INVALID: TransformationServiceType.ValueType # 0 TRANSFORMATION_SERVICE_TYPE_PYTHON: TransformationServiceType.ValueType # 1 TRANSFORMATION_SERVICE_TYPE_CUSTOM: TransformationServiceType.ValueType # 100 -global___TransformationServiceType = TransformationServiceType +Global___TransformationServiceType: _TypeAlias = TransformationServiceType # noqa: Y015 -class ValueType(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ValueType(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ARROW_VALUE_FIELD_NUMBER: builtins.int - arrow_value: builtins.bytes + ARROW_VALUE_FIELD_NUMBER: _builtins.int + arrow_value: _builtins.bytes """Having a oneOf provides forward compatibility if we need to support compound types that are not supported by arrow natively. """ def __init__( self, *, - arrow_value: builtins.bytes = ..., + arrow_value: _builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["arrow_value", b"arrow_value", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["arrow_value", b"arrow_value", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["arrow_value"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["arrow_value", b"arrow_value", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["arrow_value", b"arrow_value", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_value: _TypeAlias = _typing.Literal["arrow_value"] # noqa: Y015 + _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ... -global___ValueType = ValueType +Global___ValueType: _TypeAlias = ValueType # noqa: Y015 -class GetTransformationServiceInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetTransformationServiceInfoRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... -global___GetTransformationServiceInfoRequest = GetTransformationServiceInfoRequest +Global___GetTransformationServiceInfoRequest: _TypeAlias = GetTransformationServiceInfoRequest # noqa: Y015 -class GetTransformationServiceInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetTransformationServiceInfoResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRANSFORMATION_SERVICE_TYPE_DETAILS_FIELD_NUMBER: builtins.int - version: builtins.str + VERSION_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRANSFORMATION_SERVICE_TYPE_DETAILS_FIELD_NUMBER: _builtins.int + version: _builtins.str """Feast version of this transformation service deployment.""" - type: global___TransformationServiceType.ValueType + type: Global___TransformationServiceType.ValueType """Type of transformation service deployment. This is either Python, or custom""" - transformation_service_type_details: builtins.str + transformation_service_type_details: _builtins.str def __init__( self, *, - version: builtins.str = ..., - type: global___TransformationServiceType.ValueType = ..., - transformation_service_type_details: builtins.str = ..., + version: _builtins.str = ..., + type: Global___TransformationServiceType.ValueType = ..., + transformation_service_type_details: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["transformation_service_type_details", b"transformation_service_type_details", "type", b"type", "version", b"version"]) -> None: ... - -global___GetTransformationServiceInfoResponse = GetTransformationServiceInfoResponse - -class TransformFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ON_DEMAND_FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - TRANSFORMATION_INPUT_FIELD_NUMBER: builtins.int - on_demand_feature_view_name: builtins.str - project: builtins.str - @property - def transformation_input(self) -> global___ValueType: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["transformation_service_type_details", b"transformation_service_type_details", "type", b"type", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetTransformationServiceInfoResponse: _TypeAlias = GetTransformationServiceInfoResponse # noqa: Y015 + +@_typing.final +class TransformFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ON_DEMAND_FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + TRANSFORMATION_INPUT_FIELD_NUMBER: _builtins.int + on_demand_feature_view_name: _builtins.str + project: _builtins.str + @_builtins.property + def transformation_input(self) -> Global___ValueType: ... def __init__( self, *, - on_demand_feature_view_name: builtins.str = ..., - project: builtins.str = ..., - transformation_input: global___ValueType | None = ..., + on_demand_feature_view_name: _builtins.str = ..., + project: _builtins.str = ..., + transformation_input: Global___ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["transformation_input", b"transformation_input"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["on_demand_feature_view_name", b"on_demand_feature_view_name", "project", b"project", "transformation_input", b"transformation_input"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["transformation_input", b"transformation_input"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["on_demand_feature_view_name", b"on_demand_feature_view_name", "project", b"project", "transformation_input", b"transformation_input"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TransformFeaturesRequest = TransformFeaturesRequest +Global___TransformFeaturesRequest: _TypeAlias = TransformFeaturesRequest # noqa: Y015 -class TransformFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TransformFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRANSFORMATION_OUTPUT_FIELD_NUMBER: builtins.int - @property - def transformation_output(self) -> global___ValueType: ... + TRANSFORMATION_OUTPUT_FIELD_NUMBER: _builtins.int + @_builtins.property + def transformation_output(self) -> Global___ValueType: ... def __init__( self, *, - transformation_output: global___ValueType | None = ..., + transformation_output: Global___ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["transformation_output", b"transformation_output"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["transformation_output", b"transformation_output"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["transformation_output", b"transformation_output"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["transformation_output", b"transformation_output"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TransformFeaturesResponse = TransformFeaturesResponse +Global___TransformFeaturesResponse: _TypeAlias = TransformFeaturesResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi index faa8d358817..26f2ce53abb 100644 --- a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi +++ b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi @@ -16,39 +16,43 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class RedisKeyV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - ENTITY_NAMES_FIELD_NUMBER: builtins.int - ENTITY_VALUES_FIELD_NUMBER: builtins.int - project: builtins.str - @property - def entity_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def entity_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[_feast_types_Value_pb2.Value]: ... + from typing_extensions import TypeAlias as _TypeAlias + +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class RedisKeyV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + ENTITY_NAMES_FIELD_NUMBER: _builtins.int + ENTITY_VALUES_FIELD_NUMBER: _builtins.int + project: _builtins.str + @_builtins.property + def entity_names(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def entity_values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... def __init__( self, *, - project: builtins.str = ..., - entity_names: collections.abc.Iterable[builtins.str] | None = ..., - entity_values: collections.abc.Iterable[_feast_types_Value_pb2.Value] | None = ..., + project: _builtins.str = ..., + entity_names: _abc.Iterable[_builtins.str] | None = ..., + entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_names", b"entity_names", "entity_values", b"entity_values", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_names", b"entity_names", "entity_values", b"entity_values", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RedisKeyV2 = RedisKeyV2 +Global___RedisKeyV2: _TypeAlias = RedisKeyV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi index d2b831ce452..67612c24198 100644 --- a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi @@ -16,36 +16,40 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class EntityKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityKey(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - JOIN_KEYS_FIELD_NUMBER: builtins.int - ENTITY_VALUES_FIELD_NUMBER: builtins.int - @property - def join_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def entity_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[_feast_types_Value_pb2.Value]: ... + JOIN_KEYS_FIELD_NUMBER: _builtins.int + ENTITY_VALUES_FIELD_NUMBER: _builtins.int + @_builtins.property + def join_keys(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def entity_values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... def __init__( self, *, - join_keys: collections.abc.Iterable[builtins.str] | None = ..., - entity_values: collections.abc.Iterable[_feast_types_Value_pb2.Value] | None = ..., + join_keys: _abc.Iterable[_builtins.str] | None = ..., + entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityKey = EntityKey +Global___EntityKey: _TypeAlias = EntityKey # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/types/Field_pb2.pyi b/sdk/python/feast/protos/feast/types/Field_pb2.pyi index cbe83bf1847..fcd1eb6c8a5 100644 --- a/sdk/python/feast/protos/feast/types/Field_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/Field_pb2.pyi @@ -16,58 +16,65 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from feast.protos.feast.types import Value_pb2 as _feast_types_Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.protos.feast.types import Value_pb2 as _Value_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Field(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Field(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - name: builtins.str - value: _feast_types_Value_pb2.ValueType.Enum.ValueType - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Tags for user defined metadata on a field""" - description: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + name: _builtins.str + value: _Value_pb2.ValueType.Enum.ValueType + description: _builtins.str """Description of the field.""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Tags for user defined metadata on a field""" + def __init__( self, *, - name: builtins.str = ..., - value: _feast_types_Value_pb2.ValueType.Enum.ValueType = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., + name: _builtins.str = ..., + value: _Value_pb2.ValueType.Enum.ValueType = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "tags", b"tags", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "tags", b"tags", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Field = Field +Global___Field: _TypeAlias = Field # noqa: Y015 diff --git a/sdk/python/feast/stream_feature_view.py b/sdk/python/feast/stream_feature_view.py index 9c766c61cd1..3d0f98edae3 100644 --- a/sdk/python/feast/stream_feature_view.py +++ b/sdk/python/feast/stream_feature_view.py @@ -67,6 +67,8 @@ class StreamFeatureView(FeatureView): description: A human-readable description. tags: A dictionary of key-value pairs to store arbitrary metadata. owner: The owner of the stream feature view, typically the email of the primary maintainer. + org: The organizational unit that owns this stream feature view (e.g. "ads", "search"). + Defaults to empty string. udf: The user defined transformation function. This transformation function should have all of the corresponding imports imported within the function. udf_string: The string representation of the user defined transformation function. feature_transformation: The transformation to apply to the features. @@ -88,6 +90,7 @@ class StreamFeatureView(FeatureView): description: str tags: Dict[str, str] owner: str + org: str mode: Union[TransformationMode, str] materialization_intervals: List[Tuple[datetime, datetime]] udf: Optional[FunctionType] @@ -112,6 +115,7 @@ def __init__( offline: bool = False, description: str = "", owner: str = "", + org: str = "", schema: Optional[List[Field]] = None, aggregations: Optional[List[Aggregation]] = None, mode: Union[str, TransformationMode] = TransformationMode.PYTHON, @@ -183,6 +187,7 @@ def __init__( offline=offline, description=description, owner=owner, + org=org, schema=schema, source=source, # type: ignore[arg-type] mode=mode, @@ -304,6 +309,7 @@ def to_proto(self): description=self.description, tags=self.tags, owner=self.owner, + org=self.org, ttl=ttl_duration, online=self.online, batch_source=batch_source_proto, @@ -351,6 +357,7 @@ def from_proto(cls, sfv_proto, skip_udf: bool = False): description=sfv_proto.spec.description, tags=dict(sfv_proto.spec.tags), owner=sfv_proto.spec.owner, + org=sfv_proto.spec.org, online=sfv_proto.spec.online, schema=[ Field.from_proto(field_proto) for field_proto in sfv_proto.spec.features @@ -434,6 +441,7 @@ def __copy__(self): online=self.online, description=self.description, owner=self.owner, + org=self.org, aggregations=self.aggregations, mode=self.mode, timestamp_field=self.timestamp_field, @@ -463,6 +471,7 @@ def stream_feature_view( online: Optional[bool] = True, description: Optional[str] = "", owner: Optional[str] = "", + org: Optional[str] = "", schema: Optional[List[Field]] = None, source: Optional[DataSource] = None, aggregations: Optional[List[Aggregation]] = None, @@ -498,6 +507,7 @@ def decorator(user_function): tags=tags, online=online, owner=owner, + org=org, aggregations=aggregations, mode=mode, timestamp_field=timestamp_field, diff --git a/sdk/python/tests/unit/test_feature_views.py b/sdk/python/tests/unit/test_feature_views.py index 3427cfdfc4b..1f3fd043485 100644 --- a/sdk/python/tests/unit/test_feature_views.py +++ b/sdk/python/tests/unit/test_feature_views.py @@ -542,3 +542,58 @@ def simple_udf(df: pd.DataFrame) -> pd.DataFrame: assert deserialized.feature_transformation is not None, ( "Expected transformation to be present" ) + + +def test_feature_view_org_field(): + """Test that the optional `org` field is stored, serialized, and round-trips correctly.""" + file_source = FileSource(name="my-file-source", path="test.parquet") + + # org is optional — defaults to empty string + fv_no_org = FeatureView( + name="fv-no-org", + entities=[], + schema=[Field(name="feature1", dtype=Float32)], + source=file_source, + ) + assert fv_no_org.org == "" + + # org can be set explicitly + fv_with_org = FeatureView( + name="fv-with-org", + entities=[], + schema=[Field(name="feature1", dtype=Float32)], + source=file_source, + org="ads", + ) + assert fv_with_org.org == "ads" + + # org is serialized to proto + proto = fv_with_org.to_proto() + assert proto.spec.org == "ads" + + # org survives a proto round-trip + roundtripped = FeatureView.from_proto(proto) + assert roundtripped.org == "ads" + + # a view without org round-trips to empty string + proto_no_org = fv_no_org.to_proto() + assert proto_no_org.spec.org == "" + roundtripped_no_org = FeatureView.from_proto(proto_no_org) + assert roundtripped_no_org.org == "" + + # equality respects org + fv_org_a = FeatureView( + name="fv-eq", + entities=[], + schema=[Field(name="feature1", dtype=Float32)], + source=file_source, + org="ads", + ) + fv_org_b = FeatureView( + name="fv-eq", + entities=[], + schema=[Field(name="feature1", dtype=Float32)], + source=file_source, + org="search", + ) + assert fv_org_a != fv_org_b diff --git a/sdk/python/tests/unit/test_on_demand_feature_view.py b/sdk/python/tests/unit/test_on_demand_feature_view.py index 7afde5c8946..c63aaa0f435 100644 --- a/sdk/python/tests/unit/test_on_demand_feature_view.py +++ b/sdk/python/tests/unit/test_on_demand_feature_view.py @@ -703,3 +703,48 @@ def test_input_schema_aggregation_no_udf(): assert restored.feature_transformation is None assert len(restored.aggregations) == 1 assert restored.input_schema == [Field(name="purchase_count", dtype=Float32)] + + +def test_on_demand_feature_view_org_field(): + """Test that the optional `org` field is stored, serialized, and round-trips correctly.""" + file_source = FileSource(name="my-file-source", path="test.parquet") + feature_view = FeatureView( + name="my-feature-view", + entities=[], + schema=[Field(name="feature1", dtype=Float32)], + source=file_source, + ) + common = dict( + sources=[feature_view], + schema=[Field(name="output1", dtype=Float32)], + feature_transformation=PandasTransformation( + udf=udf1, udf_string="udf1 source code" + ), + ) + + # org defaults to empty string + odfv_no_org = OnDemandFeatureView(name="odfv-no-org", **common) + assert odfv_no_org.org == "" + + # org can be set explicitly + odfv_with_org = OnDemandFeatureView(name="odfv-with-org", org="ads", **common) + assert odfv_with_org.org == "ads" + + # org is serialized to proto + proto = odfv_with_org.to_proto() + assert proto.spec.org == "ads" + + # org survives a proto round-trip + roundtripped = OnDemandFeatureView.from_proto(proto) + assert roundtripped.org == "ads" + + # a view without org round-trips to empty string + proto_no_org = odfv_no_org.to_proto() + assert proto_no_org.spec.org == "" + roundtripped_no_org = OnDemandFeatureView.from_proto(proto_no_org) + assert roundtripped_no_org.org == "" + + # equality respects org + odfv_org_a = OnDemandFeatureView(name="odfv-eq", org="ads", **common) + odfv_org_b = OnDemandFeatureView(name="odfv-eq", org="search", **common) + assert odfv_org_a != odfv_org_b diff --git a/sdk/python/tests/unit/test_stream_feature_view.py b/sdk/python/tests/unit/test_stream_feature_view.py index 96e62d9d9e2..e0670b084bd 100644 --- a/sdk/python/tests/unit/test_stream_feature_view.py +++ b/sdk/python/tests/unit/test_stream_feature_view.py @@ -303,3 +303,36 @@ def test_update_materialization_intervals(): updated_stream_feature_view.materialization_intervals[0][1] == stored_stream_feature_view.materialization_intervals[0][1] ) + + +def test_stream_feature_view_org_field(): + """Test that the optional `org` field is stored, serialized, and round-trips correctly.""" + stream_source = KafkaSource( + name="kafka", + timestamp_field="event_timestamp", + kafka_bootstrap_servers="", + message_format=AvroFormat(""), + topic="topic", + batch_source=FileSource(path="some path"), + ) + common = dict( + entities=[], + ttl=timedelta(days=30), + schema=[Field(name="dummy_field", dtype=Float32)], + source=stream_source, + ) + + sfv_no_org = StreamFeatureView(name="sfv-no-org", **common) + assert sfv_no_org.org == "" + + sfv_with_org = StreamFeatureView(name="sfv-with-org", org="ads", **common) + assert sfv_with_org.org == "ads" + + proto = sfv_with_org.to_proto() + assert proto.spec.org == "ads" + + roundtripped = StreamFeatureView.from_proto(proto) + assert roundtripped.org == "ads" + + sfv_other_org = StreamFeatureView(name="sfv-with-org", org="search", **common) + assert sfv_with_org != sfv_other_org