diff --git a/protos/feast/core/FeatureView.proto b/protos/feast/core/FeatureView.proto index 90207928ed0..e9fab625bb4 100644 --- a/protos/feast/core/FeatureView.proto +++ b/protos/feast/core/FeatureView.proto @@ -28,6 +28,26 @@ import "feast/core/DataSource.proto"; import "feast/core/Feature.proto"; import "feast/core/Transformation.proto"; +// Lifecycle state of a feature view. +enum FeatureViewState { + // Default value for backward compatibility. Treated as AVAILABLE_ONLINE + // for existing feature views that predate the state machine. + STATE_UNSPECIFIED = 0; + + // Feature view has been registered via feast apply but no data is available. + CREATED = 1; + + // Feature engineering / offline data generation is complete. + // The feature view is ready to be materialized. + GENERATED = 2; + + // Materialization is currently in progress. + MATERIALIZING = 3; + + // Materialization completed. Features are available in the online store. + AVAILABLE_ONLINE = 4; +} + message FeatureView { // User-specified specifications of this feature view. FeatureViewSpec spec = 1; @@ -100,6 +120,11 @@ message FeatureViewSpec { // Organizational unit that owns this feature view (e.g. "ads", "search"). string org = 19; + + // Whether this feature view is disabled for serving and materialization. + // When true, the feature view will not serve online features or be materialized. + // Defaults to false (enabled) for backward compatibility. + bool disabled = 20; } message FeatureViewMeta { @@ -117,6 +142,9 @@ message FeatureViewMeta { // Auto-generated UUID identifying this specific version. string version_id = 5; + + // Lifecycle state of this feature view. + FeatureViewState state = 6; } message MaterializationInterval { diff --git a/protos/feast/core/OnDemandFeatureView.proto b/protos/feast/core/OnDemandFeatureView.proto index 87c6a0eabfb..47372af15b2 100644 --- a/protos/feast/core/OnDemandFeatureView.proto +++ b/protos/feast/core/OnDemandFeatureView.proto @@ -80,6 +80,11 @@ message OnDemandFeatureViewSpec { // Organizational unit that owns this feature view (e.g. "ads", "search"). string org = 18; + + // Whether this feature view is disabled for serving. + // When true, the feature view will not serve features. + // Defaults to false (enabled) for backward compatibility. + bool disabled = 19; } message OnDemandFeatureViewMeta { @@ -94,6 +99,9 @@ message OnDemandFeatureViewMeta { // Auto-generated UUID identifying this specific version. string version_id = 4; + + // Lifecycle state of this feature view. + FeatureViewState state = 5; } message OnDemandSource { diff --git a/protos/feast/core/StreamFeatureView.proto b/protos/feast/core/StreamFeatureView.proto index 4aff7cc37e7..8539e74bb6d 100644 --- a/protos/feast/core/StreamFeatureView.proto +++ b/protos/feast/core/StreamFeatureView.proto @@ -108,5 +108,10 @@ message StreamFeatureViewSpec { // Organizational unit that owns this stream feature view (e.g. "ads", "search"). string org = 22; + + // Whether this feature view is disabled for serving and materialization. + // When true, the feature view will not serve online features or be materialized. + // Defaults to false (enabled) for backward compatibility. + bool disabled = 23; } diff --git a/sdk/python/feast/__init__.py b/sdk/python/feast/__init__.py index b61bc2110ab..0af86f30a6d 100644 --- a/sdk/python/feast/__init__.py +++ b/sdk/python/feast/__init__.py @@ -24,7 +24,7 @@ from .feature import Feature from .feature_service import FeatureService from .feature_store import FeatureStore -from .feature_view import FeatureView +from .feature_view import FeatureView, FeatureViewState from .field import Field from .on_demand_feature_view import OnDemandFeatureView from .project import Project @@ -53,6 +53,7 @@ "FeatureService", "FeatureStore", "FeatureView", + "FeatureViewState", "OnDemandFeatureView", "RepoConfig", "StreamFeatureView", diff --git a/sdk/python/feast/cli/feature_views.py b/sdk/python/feast/cli/feature_views.py index 99de5e70be7..44357b0c1c1 100644 --- a/sdk/python/feast/cli/feature_views.py +++ b/sdk/python/feast/cli/feature_views.py @@ -1,10 +1,16 @@ +import sys + import click import yaml from feast import utils from feast.cli.cli_options import tagsOption from feast.errors import FeastObjectNotFoundException -from feast.feature_view import FeatureView +from feast.feature_view import ( + _VALID_STATE_TRANSITIONS, + FeatureView, + FeatureViewState, +) from feast.on_demand_feature_view import OnDemandFeatureView from feast.repo_operations import create_feature_store @@ -32,11 +38,13 @@ def feature_view_describe(ctx: click.Context, name: str): print(e) exit(1) - print( - yaml.dump( - yaml.safe_load(str(feature_view)), default_flow_style=False, sort_keys=False - ) - ) + data = yaml.safe_load(str(feature_view)) + # Always show enabled and state even when they are at default values. + if hasattr(feature_view, "enabled"): + data["enabled"] = feature_view.enabled + if hasattr(feature_view, "state"): + data["state"] = feature_view.state.name + print(yaml.dump(data, default_flow_style=False, sort_keys=False)) @feature_views_cmd.command(name="list") @@ -59,17 +67,129 @@ def feature_view_list(ctx: click.Context, tags: list[str]): elif isinstance(feature_view, OnDemandFeatureView): for backing_fv in feature_view.source_feature_view_projections.values(): entities.update(store.get_feature_view(backing_fv.name).entities) + enabled = getattr(feature_view, "enabled", True) + state = getattr(feature_view, "state", FeatureViewState.STATE_UNSPECIFIED) + state_display = ( + state.name if isinstance(state, FeatureViewState) else str(state) + ) table.append( [ feature_view.name, entities if len(entities) > 0 else "n/a", type(feature_view).__name__, + "Yes" if enabled else "No", + state_display, ] ) from tabulate import tabulate - print(tabulate(table, headers=["NAME", "ENTITIES", "TYPE"], tablefmt="plain")) + print( + tabulate( + table, + headers=["NAME", "ENTITIES", "TYPE", "ENABLED", "STATE"], + tablefmt="plain", + ) + ) + + +@feature_views_cmd.command("enable") +@click.argument("name", type=click.STRING) +@click.pass_context +def feature_view_enable(ctx: click.Context, name: str): + """ + Enable a feature view for serving and materialization. + """ + store = create_feature_store(ctx) + try: + fv = store.registry.get_any_feature_view(name, store.project) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if not isinstance(fv, (FeatureView, OnDemandFeatureView)): + print(f"Feature view '{name}' does not support enable/disable.") + return + + if fv.enabled: + print(f"Feature view '{name}' is already enabled.") + return + + fv.enabled = True + store.registry.apply_feature_view(fv, store.project) + print(f"Feature view '{name}' has been enabled.") + + +@feature_views_cmd.command("disable") +@click.argument("name", type=click.STRING) +@click.pass_context +def feature_view_disable(ctx: click.Context, name: str): + """ + Disable a feature view to prevent serving and materialization. + """ + store = create_feature_store(ctx) + try: + fv = store.registry.get_any_feature_view(name, store.project) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if not isinstance(fv, (FeatureView, OnDemandFeatureView)): + print(f"Feature view '{name}' does not support enable/disable.") + return + + if not fv.enabled: + print(f"Feature view '{name}' is already disabled.") + return + + fv.enabled = False + store.registry.apply_feature_view(fv, store.project) + print(f"Feature view '{name}' has been disabled.") + + +@feature_views_cmd.command("set-state") +@click.argument("name", type=click.STRING) +@click.argument( + "state", + type=click.Choice( + ["CREATED", "GENERATED", "MATERIALIZING", "AVAILABLE_ONLINE"], + case_sensitive=False, + ), +) +@click.pass_context +def feature_view_set_state(ctx: click.Context, name: str, state: str): + """ + Set the lifecycle state of a feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.registry.get_any_feature_view(name, store.project) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if not isinstance(fv, (FeatureView, OnDemandFeatureView)): + print(f"Feature view '{name}' does not support state management.") + return + + new_state = FeatureViewState[state.upper()] + if fv.state == new_state: + print(f"Feature view '{name}' is already in state {new_state.name}.") + return + + if not fv.state.can_transition_to(new_state): + current = fv.state.name + allowed = _VALID_STATE_TRANSITIONS.get(fv.state, set()) + allowed_names = ", ".join(sorted(s.name for s in allowed)) or "none" + print( + f"Invalid state transition: {current} -> {new_state.name}. " + f"Allowed transitions from {current}: {allowed_names}." + ) + return + + fv.state = new_state + store.registry.apply_feature_view(fv, store.project) + print(f"Feature view '{name}' state set to {new_state.name}.") @feature_views_cmd.command("list-versions") diff --git a/sdk/python/feast/cli/on_demand_feature_views.py b/sdk/python/feast/cli/on_demand_feature_views.py index a7ee4093318..0783de51027 100644 --- a/sdk/python/feast/cli/on_demand_feature_views.py +++ b/sdk/python/feast/cli/on_demand_feature_views.py @@ -1,9 +1,12 @@ +import sys + import click import yaml from feast import utils from feast.cli.cli_options import tagsOption from feast.errors import FeastObjectNotFoundException +from feast.feature_view import _VALID_STATE_TRANSITIONS, FeatureViewState from feast.repo_operations import create_feature_store @@ -30,13 +33,12 @@ def on_demand_feature_view_describe(ctx: click.Context, name: str): print(e) exit(1) - print( - yaml.dump( - yaml.safe_load(str(on_demand_feature_view)), - default_flow_style=False, - sort_keys=False, - ) - ) + data = yaml.safe_load(str(on_demand_feature_view)) + if hasattr(on_demand_feature_view, "enabled"): + data["enabled"] = on_demand_feature_view.enabled + if hasattr(on_demand_feature_view, "state"): + data["state"] = on_demand_feature_view.state.name + print(yaml.dump(data, default_flow_style=False, sort_keys=False)) @on_demand_feature_views_cmd.command(name="list") @@ -55,3 +57,90 @@ def on_demand_feature_view_list(ctx: click.Context, tags: list[str]): from tabulate import tabulate print(tabulate(table, headers=["NAME"], tablefmt="plain")) + + +@on_demand_feature_views_cmd.command("enable") +@click.argument("name", type=click.STRING) +@click.pass_context +def on_demand_feature_view_enable(ctx: click.Context, name: str): + """ + Enable an on demand feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_on_demand_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if fv.enabled: + print(f"On demand feature view '{name}' is already enabled.") + return + + fv.enabled = True + store.registry.apply_feature_view(fv, store.project) + print(f"On demand feature view '{name}' has been enabled.") + + +@on_demand_feature_views_cmd.command("disable") +@click.argument("name", type=click.STRING) +@click.pass_context +def on_demand_feature_view_disable(ctx: click.Context, name: str): + """ + Disable an on demand feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_on_demand_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if not fv.enabled: + print(f"On demand feature view '{name}' is already disabled.") + return + + fv.enabled = False + store.registry.apply_feature_view(fv, store.project) + print(f"On demand feature view '{name}' has been disabled.") + + +@on_demand_feature_views_cmd.command("set-state") +@click.argument("name", type=click.STRING) +@click.argument( + "state", + type=click.Choice( + ["CREATED", "GENERATED", "MATERIALIZING", "AVAILABLE_ONLINE"], + case_sensitive=False, + ), +) +@click.pass_context +def on_demand_feature_view_set_state(ctx: click.Context, name: str, state: str): + """ + Set the lifecycle state of an on demand feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_on_demand_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + new_state = FeatureViewState[state.upper()] + if fv.state == new_state: + print(f"On demand feature view '{name}' is already in state {new_state.name}.") + return + + if not fv.state.can_transition_to(new_state): + current = fv.state.name + allowed = _VALID_STATE_TRANSITIONS.get(fv.state, set()) + allowed_names = ", ".join(sorted(s.name for s in allowed)) or "none" + print( + f"Invalid state transition: {current} -> {new_state.name}. " + f"Allowed transitions from {current}: {allowed_names}." + ) + return + + fv.state = new_state + store.registry.apply_feature_view(fv, store.project) + print(f"On demand feature view '{name}' state set to {new_state.name}.") diff --git a/sdk/python/feast/cli/stream_feature_views.py b/sdk/python/feast/cli/stream_feature_views.py index 16efd9ad2bd..219fe742360 100644 --- a/sdk/python/feast/cli/stream_feature_views.py +++ b/sdk/python/feast/cli/stream_feature_views.py @@ -1,9 +1,12 @@ +import sys + import click import yaml from feast import utils from feast.cli.cli_options import tagsOption from feast.errors import FeastObjectNotFoundException +from feast.feature_view import _VALID_STATE_TRANSITIONS, FeatureViewState from feast.repo_operations import create_feature_store @@ -30,13 +33,12 @@ def stream_feature_views_describe(ctx: click.Context, name: str): print(e) exit(1) - print( - yaml.dump( - yaml.safe_load(str(stream_feature_view)), - default_flow_style=False, - sort_keys=False, - ) - ) + data = yaml.safe_load(str(stream_feature_view)) + if hasattr(stream_feature_view, "enabled"): + data["enabled"] = stream_feature_view.enabled + if hasattr(stream_feature_view, "state"): + data["state"] = stream_feature_view.state.name + print(yaml.dump(data, default_flow_style=False, sort_keys=False)) @stream_feature_views_cmd.command(name="list") @@ -55,3 +57,90 @@ def stream_feature_views_list(ctx: click.Context, tags: list[str]): from tabulate import tabulate print(tabulate(table, headers=["NAME"], tablefmt="plain")) + + +@stream_feature_views_cmd.command("enable") +@click.argument("name", type=click.STRING) +@click.pass_context +def stream_feature_view_enable(ctx: click.Context, name: str): + """ + Enable a stream feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_stream_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if fv.enabled: + print(f"Stream feature view '{name}' is already enabled.") + return + + fv.enabled = True + store.registry.apply_feature_view(fv, store.project) + print(f"Stream feature view '{name}' has been enabled.") + + +@stream_feature_views_cmd.command("disable") +@click.argument("name", type=click.STRING) +@click.pass_context +def stream_feature_view_disable(ctx: click.Context, name: str): + """ + Disable a stream feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_stream_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + if not fv.enabled: + print(f"Stream feature view '{name}' is already disabled.") + return + + fv.enabled = False + store.registry.apply_feature_view(fv, store.project) + print(f"Stream feature view '{name}' has been disabled.") + + +@stream_feature_views_cmd.command("set-state") +@click.argument("name", type=click.STRING) +@click.argument( + "state", + type=click.Choice( + ["CREATED", "GENERATED", "MATERIALIZING", "AVAILABLE_ONLINE"], + case_sensitive=False, + ), +) +@click.pass_context +def stream_feature_view_set_state(ctx: click.Context, name: str, state: str): + """ + Set the lifecycle state of a stream feature view. + """ + store = create_feature_store(ctx) + try: + fv = store.get_stream_feature_view(name) + except FeastObjectNotFoundException as e: + print(e) + sys.exit(1) + + new_state = FeatureViewState[state.upper()] + if fv.state == new_state: + print(f"Stream feature view '{name}' is already in state {new_state.name}.") + return + + if not fv.state.can_transition_to(new_state): + current = fv.state.name + allowed = _VALID_STATE_TRANSITIONS.get(fv.state, set()) + allowed_names = ", ".join(sorted(s.name for s in allowed)) or "none" + print( + f"Invalid state transition: {current} -> {new_state.name}. " + f"Allowed transitions from {current}: {allowed_names}." + ) + return + + fv.state = new_state + store.registry.apply_feature_view(fv, store.project) + print(f"Stream feature view '{name}' state set to {new_state.name}.") diff --git a/sdk/python/feast/feature_store.py b/sdk/python/feast/feature_store.py index 9a0736ff6cd..041755ac1ee 100644 --- a/sdk/python/feast/feature_store.py +++ b/sdk/python/feast/feature_store.py @@ -68,7 +68,12 @@ ) from feast.feast_object import FeastObject from feast.feature_service import FeatureService -from feast.feature_view import DUMMY_ENTITY, DUMMY_ENTITY_NAME, FeatureView +from feast.feature_view import ( + DUMMY_ENTITY, + DUMMY_ENTITY_NAME, + FeatureView, + FeatureViewState, +) from feast.inference import ( update_data_sources_with_inferred_event_timestamp_col, update_feature_views_with_inferred_features_and_entities, @@ -793,6 +798,44 @@ def delete_feature_view(self, name: str): """ return self.registry.delete_feature_view(name, self.project) + def enable_feature_view(self, name: str): + """ + Enable a feature view for serving and materialization. + + Args: + name: Name of feature view. + """ + fv = self.registry.get_any_feature_view(name, self.project) + fv.enabled = True + self.registry.apply_feature_view(fv, self.project) + + def disable_feature_view(self, name: str): + """ + Disable a feature view to prevent serving and materialization. + + Args: + name: Name of feature view. + """ + fv = self.registry.get_any_feature_view(name, self.project) + fv.enabled = False + self.registry.apply_feature_view(fv, self.project) + + def set_feature_view_state(self, name: str, state: FeatureViewState): + """ + Set the lifecycle state of a feature view. + + Args: + name: Name of feature view. + state: Target state. + """ + fv = self.registry.get_any_feature_view(name, self.project) + if not fv.state.can_transition_to(state): + raise ValueError( + f"Invalid state transition: {fv.state.name} -> {state.name}." + ) + fv.state = state + self.registry.apply_feature_view(fv, self.project) + def delete_feature_service(self, name: str): """ Deletes a feature service. @@ -961,20 +1004,24 @@ def _get_feature_views_to_materialize( self.registry, self.project, hide_dummy_entity=False ) feature_views_to_materialize.extend( - [fv for fv in regular_feature_views if fv.online] + [fv for fv in regular_feature_views if fv.online and fv.enabled] ) stream_feature_views_to_materialize = self._list_stream_feature_views( hide_dummy_entity=False ) feature_views_to_materialize.extend( - [sfv for sfv in stream_feature_views_to_materialize if sfv.online] + [ + sfv + for sfv in stream_feature_views_to_materialize + if sfv.online and sfv.enabled + ] ) on_demand_feature_views_to_materialize = self.list_on_demand_feature_views() feature_views_to_materialize.extend( [ odfv for odfv in on_demand_feature_views_to_materialize - if odfv.write_to_online_store + if odfv.write_to_online_store and odfv.enabled ] ) else: @@ -1000,6 +1047,11 @@ def _get_feature_views_to_materialize( except FeatureViewNotFoundException: feature_view = self.get_on_demand_feature_view(name) + if hasattr(feature_view, "enabled") and not feature_view.enabled: + raise ValueError( + f"FeatureView {feature_view.name} is disabled. " + f"Enable it before materializing." + ) if hasattr(feature_view, "online") and not feature_view.online: raise ValueError( f"FeatureView {feature_view.name} is not configured to be served online." @@ -2038,6 +2090,25 @@ def tqdm_builder(length): start_date = utils.make_tzaware(start_date) end_date = utils.make_tzaware(end_date) or _utc_now() + # Transition state to MATERIALIZING before starting. + # Only enforce when the state machine is active (not STATE_UNSPECIFIED). + previous_state = getattr(feature_view, "state", None) + if ( + hasattr(feature_view, "state") + and feature_view.state != FeatureViewState.STATE_UNSPECIFIED + ): + if not feature_view.state.can_transition_to( + FeatureViewState.MATERIALIZING + ): + raise ValueError( + f"FeatureView {feature_view.name} cannot transition " + f"from {feature_view.state.name} to MATERIALIZING." + ) + feature_view.state = FeatureViewState.MATERIALIZING + self.registry.apply_feature_view( + feature_view, self.project, commit=True + ) + fv_start = time.monotonic() fv_success = True try: @@ -2052,6 +2123,16 @@ def tqdm_builder(length): ) except Exception: fv_success = False + # Roll back state to previous value on failure. + if ( + hasattr(feature_view, "state") + and previous_state is not None + and previous_state != FeatureViewState.STATE_UNSPECIFIED + ): + feature_view.state = previous_state + self.registry.apply_feature_view( + feature_view, self.project, commit=True + ) raise finally: _tracker = _get_track_materialization() @@ -2061,6 +2142,7 @@ def tqdm_builder(length): fv_success, time.monotonic() - fv_start, ) + if not isinstance(feature_view, OnDemandFeatureView): self.registry.apply_materialization( feature_view, @@ -2176,6 +2258,25 @@ def tqdm_builder(length): start_date = utils.make_tzaware(start_date) end_date = utils.make_tzaware(end_date) + # Transition state to MATERIALIZING before starting. + # Only enforce when the state machine is active (not STATE_UNSPECIFIED). + previous_state = getattr(feature_view, "state", None) + if ( + hasattr(feature_view, "state") + and feature_view.state != FeatureViewState.STATE_UNSPECIFIED + ): + if not feature_view.state.can_transition_to( + FeatureViewState.MATERIALIZING + ): + raise ValueError( + f"FeatureView {feature_view.name} cannot transition " + f"from {feature_view.state.name} to MATERIALIZING." + ) + feature_view.state = FeatureViewState.MATERIALIZING + self.registry.apply_feature_view( + feature_view, self.project, commit=True + ) + fv_start = time.monotonic() fv_success = True try: @@ -2191,6 +2292,16 @@ def tqdm_builder(length): ) except Exception: fv_success = False + # Roll back state to previous value on failure. + if ( + hasattr(feature_view, "state") + and previous_state is not None + and previous_state != FeatureViewState.STATE_UNSPECIFIED + ): + feature_view.state = previous_state + self.registry.apply_feature_view( + feature_view, self.project, commit=True + ) raise finally: _tracker = _get_track_materialization() diff --git a/sdk/python/feast/feature_view.py b/sdk/python/feast/feature_view.py index da11a7958ca..3adce45750f 100644 --- a/sdk/python/feast/feature_view.py +++ b/sdk/python/feast/feature_view.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import copy +import enum import warnings from datetime import datetime, timedelta from typing import Dict, List, Optional, Tuple, Type, Union @@ -48,6 +49,49 @@ warnings.simplefilter("once", DeprecationWarning) + +class FeatureViewState(enum.IntEnum): + """Lifecycle state of a feature view. + + Maps to the ``FeatureViewState`` proto enum defined in + ``protos/feast/core/FeatureView.proto``. + """ + + STATE_UNSPECIFIED = 0 + CREATED = 1 + GENERATED = 2 + MATERIALIZING = 3 + AVAILABLE_ONLINE = 4 + + def can_transition_to(self, target: "FeatureViewState") -> bool: + """Return True if transitioning from this state to *target* is allowed.""" + allowed = _VALID_STATE_TRANSITIONS.get(self, set()) + return target in allowed + + @classmethod + def from_proto(cls, proto_val: int) -> "FeatureViewState": + try: + return cls(proto_val) + except ValueError: + return cls.STATE_UNSPECIFIED + + def to_proto(self) -> int: + return self.value + + +# Valid state transitions: maps each state to the set of states it can move to. +_VALID_STATE_TRANSITIONS: dict[FeatureViewState, set[FeatureViewState]] = { + FeatureViewState.STATE_UNSPECIFIED: {FeatureViewState.CREATED}, + FeatureViewState.CREATED: {FeatureViewState.GENERATED}, + FeatureViewState.GENERATED: {FeatureViewState.MATERIALIZING}, + FeatureViewState.MATERIALIZING: { + FeatureViewState.AVAILABLE_ONLINE, + FeatureViewState.GENERATED, + }, + FeatureViewState.AVAILABLE_ONLINE: {FeatureViewState.MATERIALIZING}, +} + + # DUMMY_ENTITY is a placeholder entity used in entityless FeatureViews DUMMY_ENTITY_ID = "__dummy_id" DUMMY_ENTITY_NAME = "__dummy" @@ -113,6 +157,8 @@ class FeatureView(BaseFeatureView): materialization_intervals: List[Tuple[datetime, datetime]] mode: Optional[Union["TransformationMode", str]] enable_validation: bool + enabled: bool + state: FeatureViewState def __init__( self, @@ -132,6 +178,7 @@ def __init__( mode: Optional[Union["TransformationMode", str]] = None, enable_validation: bool = False, version: str = "latest", + enabled: bool = True, ): """ Creates a FeatureView object. @@ -289,6 +336,8 @@ def __init__( self.offline = offline self.mode = mode self.materialization_intervals = [] + self.enabled = enabled + self.state = FeatureViewState.STATE_UNSPECIFIED def __hash__(self): return super().__hash__() @@ -310,6 +359,7 @@ def __copy__(self): description=self.description, owner=self.owner, org=self.org, + enabled=self.enabled, ) # This is deliberately set outside of the FV initialization as we do not have the Entity objects. @@ -317,6 +367,7 @@ def __copy__(self): fv.features = copy.copy(self.features) fv.entity_columns = copy.copy(self.entity_columns) fv.projection = copy.copy(self.projection) + fv.state = self.state return fv def _schema_or_udf_changed(self, other: "BaseFeatureView") -> bool: @@ -505,6 +556,7 @@ def to_proto_spec( mode=mode_to_string(self.mode), enable_validation=self.enable_validation, version=self.version, + disabled=not self.enabled, ) def to_proto_meta(self): @@ -520,6 +572,8 @@ def to_proto_meta(self): meta.materialization_intervals.append(interval_proto) if self.current_version_number is not None: meta.current_version_number = self.current_version_number + if self.state != FeatureViewState.STATE_UNSPECIFIED: + meta.state = self.state.to_proto() return meta def get_ttl_duration(self): @@ -685,6 +739,14 @@ def _from_proto_internal( # Restore enable_validation from proto field. feature_view.enable_validation = feature_view_proto.spec.enable_validation + # Restore enabled from proto's inverted 'disabled' field. + # Proto bool defaults to False, so old protos without this field + # will correctly default to enabled=True. + feature_view.enabled = not feature_view_proto.spec.disabled + + # Restore lifecycle state from meta. + feature_view.state = FeatureViewState.from_proto(feature_view_proto.meta.state) + # Restore version fields. spec_version = feature_view_proto.spec.version feature_view.version = spec_version or "latest" diff --git a/sdk/python/feast/infra/registry/registry.py b/sdk/python/feast/infra/registry/registry.py index e26595ad4af..dbf1fee2f92 100644 --- a/sdk/python/feast/infra/registry/registry.py +++ b/sdk/python/feast/infra/registry/registry.py @@ -39,7 +39,7 @@ ValidationReferenceNotFound, ) from feast.feature_service import FeatureService -from feast.feature_view import FeatureView +from feast.feature_view import FeatureView, FeatureViewState from feast.importer import import_class from feast.infra.infra_object import Infra from feast.infra.registry import proto_registry_utils @@ -580,6 +580,20 @@ def _update_metadata_fields( updated_fv, "enable_validation" ) + # Enabled/disabled state + if hasattr(existing_proto.spec, "disabled") and hasattr(updated_fv, "enabled"): + existing_proto.spec.disabled = not getattr(updated_fv, "enabled") + + # Lifecycle state — skip STATE_UNSPECIFIED so that ``feast apply`` + # does not accidentally reset an AVAILABLE_ONLINE view. + if hasattr(existing_proto.meta, "state") and hasattr(updated_fv, "state"): + state_val = getattr(updated_fv, "state") + if ( + isinstance(state_val, FeatureViewState) + and state_val != FeatureViewState.STATE_UNSPECIFIED + ): + existing_proto.meta.state = state_val.to_proto() + # OnDemandFeatureView configuration if hasattr(existing_proto.spec, "write_to_online_store") and hasattr( updated_fv, "write_to_online_store" @@ -941,6 +955,9 @@ def apply_materialization( (start_date, end_date) ) existing_feature_view.last_updated_timestamp = _utc_now() + # Transition state to AVAILABLE_ONLINE after materialization. + if hasattr(existing_feature_view, "state"): + existing_feature_view.state = FeatureViewState.AVAILABLE_ONLINE feature_view_proto = existing_feature_view.to_proto() feature_view_proto.spec.project = project del self.cached_registry_proto.feature_views[idx] @@ -963,6 +980,11 @@ def apply_materialization( (start_date, end_date) ) existing_stream_feature_view.last_updated_timestamp = _utc_now() + # Transition state to AVAILABLE_ONLINE after materialization. + if hasattr(existing_stream_feature_view, "state"): + existing_stream_feature_view.state = ( + FeatureViewState.AVAILABLE_ONLINE + ) stream_feature_view_proto = existing_stream_feature_view.to_proto() stream_feature_view_proto.spec.project = project del self.cached_registry_proto.stream_feature_views[idx] diff --git a/sdk/python/feast/on_demand_feature_view.py b/sdk/python/feast/on_demand_feature_view.py index dbd7738f21d..df6c68dad71 100644 --- a/sdk/python/feast/on_demand_feature_view.py +++ b/sdk/python/feast/on_demand_feature_view.py @@ -14,7 +14,7 @@ from feast.data_source import RequestSource from feast.entity import Entity from feast.errors import RegistryInferenceFailure, SpecifiedFeaturesNotPresentError -from feast.feature_view import DUMMY_ENTITY_NAME, FeatureView +from feast.feature_view import DUMMY_ENTITY_NAME, FeatureView, FeatureViewState from feast.feature_view_projection import FeatureViewProjection from feast.field import Field, from_value_type from feast.proto_utils import transformation_to_proto @@ -155,6 +155,8 @@ class OnDemandFeatureView(BaseFeatureView): udf: Optional[FunctionType] udf_string: Optional[str] aggregations: List[Aggregation] + enabled: bool + state: FeatureViewState def __init__( # noqa: C901 self, @@ -177,6 +179,7 @@ def __init__( # noqa: C901 track_metrics: bool = False, aggregations: Optional[List[Aggregation]] = None, version: str = "latest", + enabled: bool = True, ): """ Creates an OnDemandFeatureView object. @@ -316,6 +319,9 @@ def __init__( # noqa: C901 ) self.track_metrics = track_metrics self.aggregations = aggregations or [] + self.enabled = enabled + + self.state = FeatureViewState.STATE_UNSPECIFIED if input_schema is not None and self.aggregations: input_field_names = {f.name for f in input_schema} @@ -402,6 +408,8 @@ def __copy__(self): fv.features = self.features fv.projection = copy.copy(self.projection) fv.entity_columns = copy.copy(self.entity_columns) + fv.enabled = self.enabled + fv.state = self.state return fv @@ -588,6 +596,8 @@ def to_proto(self) -> OnDemandFeatureViewProto: meta.last_updated_timestamp.FromDatetime(self.last_updated_timestamp) if self.current_version_number is not None: meta.current_version_number = self.current_version_number + if self.state != FeatureViewState.STATE_UNSPECIFIED: + meta.state = self.state.to_proto() sources = {} for source_name, fv_projection in self.source_feature_view_projections.items(): sources[source_name] = OnDemandSource( @@ -635,6 +645,7 @@ def to_proto(self) -> OnDemandFeatureViewProto: singleton=self.singleton or False, aggregations=[agg.to_proto() for agg in self.aggregations], version=self.version, + disabled=not self.enabled, ) return OnDemandFeatureViewProto(spec=spec, meta=meta) @@ -709,6 +720,14 @@ def from_proto( # Set additional attributes that aren't part of the constructor on_demand_feature_view_obj.entities = optional_fields["entities"] on_demand_feature_view_obj.entity_columns = optional_fields["entity_columns"] + on_demand_feature_view_obj.enabled = ( + not on_demand_feature_view_proto.spec.disabled + ) + + # Restore lifecycle state from meta. + on_demand_feature_view_obj.state = FeatureViewState.from_proto( + on_demand_feature_view_proto.meta.state + ) # FeatureViewProjections are not saved in the OnDemandFeatureView proto. # Create the default projection. diff --git a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi index 4b5c1cac9a9..4c6bd7c089c 100644 --- a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi @@ -2,49 +2,44 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 builtins +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Aggregation(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Aggregation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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 - name: _builtins.str - @_builtins.property - def time_window(self) -> _duration_pb2.Duration: ... - @_builtins.property - def slide_interval(self) -> _duration_pb2.Duration: ... + 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 def __init__( self, *, - column: _builtins.str = ..., - function: _builtins.str = ..., - time_window: _duration_pb2.Duration | None = ..., - slide_interval: _duration_pb2.Duration | None = ..., - name: _builtins.str = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___Aggregation: _TypeAlias = Aggregation # noqa: Y015 +global___Aggregation = Aggregation diff --git a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi index fa5291fac26..193fb82a776 100644 --- a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi @@ -16,318 +16,272 @@ 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. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message 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, 13): - from warnings import deprecated as _deprecated +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import deprecated as _deprecated + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FileFormat(_message.Message): +class FileFormat(google.protobuf.message.Message): """Defines the file format encoding the features/entity data in files""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class ParquetFormat(_message.Message): + class ParquetFormat(google.protobuf.message.Message): """Defines options for the Parquet data format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - 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: + 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: """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: ... - _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): + 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): """Defines options for Apache Iceberg table format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class PropertiesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class PropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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""" - @_builtins.property - def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def properties(self) -> google.protobuf.internal.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: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + catalog: builtins.str = ..., + namespace: builtins.str = ..., + properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"]) -> None: ... - @_typing.final - class DeltaFormat(_message.Message): + class DeltaFormat(google.protobuf.message.Message): """Defines options for Delta Lake table format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class PropertiesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class PropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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""" - @_builtins.property - def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def properties(self) -> google.protobuf.internal.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: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + checkpoint_location: builtins.str = ..., + properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"]) -> None: ... - @_typing.final - class HudiFormat(_message.Message): + class HudiFormat(google.protobuf.message.Message): """Defines options for Apache Hudi table format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class PropertiesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class PropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """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""" - @_builtins.property - def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def properties(self) -> google.protobuf.internal.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: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + table_type: builtins.str = ..., + record_key: builtins.str = ..., + precombine_field: builtins.str = ..., + properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - _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 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: ... 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: ... - _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): + 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): """Defines the data format encoding features/entity data in data streams""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class ProtoFormat(_message.Message): + class ProtoFormat(google.protobuf.message.Message): """Defines options for the protobuf data format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["class_path", b"class_path"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_path", b"class_path"]) -> None: ... - @_typing.final - class AvroFormat(_message.Message): + class AvroFormat(google.protobuf.message.Message): """Defines options for the avro data format""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ... - @_typing.final - class JsonFormat(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class JsonFormat(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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: ... 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: ... - _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 + 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 diff --git a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi index f9a451e8560..6339a97536e 100644 --- a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi @@ -16,60 +16,52 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -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 builtins +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.wrappers_pb2 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class DatastoreTable(_message.Message): +class DatastoreTable(google.protobuf.message.Message): """Represents a Datastore table""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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""" - @_builtins.property - def project_id(self) -> _wrappers_pb2.StringValue: + @property + def project_id(self) -> google.protobuf.wrappers_pb2.StringValue: """GCP project id""" - - @_builtins.property - def namespace(self) -> _wrappers_pb2.StringValue: + @property + def namespace(self) -> google.protobuf.wrappers_pb2.StringValue: """Datastore namespace""" - - @_builtins.property - def database(self) -> _wrappers_pb2.StringValue: + @property + def database(self) -> google.protobuf.wrappers_pb2.StringValue: """Firestore database""" - def __init__( self, *, - project: _builtins.str = ..., - name: _builtins.str = ..., - project_id: _wrappers_pb2.StringValue | None = ..., - namespace: _wrappers_pb2.StringValue | None = ..., - database: _wrappers_pb2.StringValue | None = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___DatastoreTable: _TypeAlias = DatastoreTable # noqa: Y015 +global___DatastoreTable = DatastoreTable diff --git a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi index b88884b41c3..025817edfee 100644 --- a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi @@ -16,147 +16,130 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Entity(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Entity(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___EntitySpecV2: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___EntitySpecV2: """User-specified specifications of this entity.""" - - @_builtins.property - def meta(self) -> Global___EntityMeta: + @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: ... - _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: ... + 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: ... -Global___Entity: _TypeAlias = Entity # noqa: Y015 +global___Entity = Entity -@_typing.final -class EntitySpecV2(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class EntitySpecV2(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """Name of the entity.""" - project: _builtins.str + project: builtins.str """Name of Feast project that this feature table belongs to.""" - value_type: _Value_pb2.ValueType.Enum.ValueType + value_type: feast.types.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).""" - owner: _builtins.str - """Owner of the entity.""" - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - + owner: builtins.str + """Owner of the entity.""" def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___EntitySpecV2: _TypeAlias = EntitySpecV2 # noqa: Y015 +global___EntitySpecV2 = EntitySpecV2 -@_typing.final -class EntityMeta(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class EntityMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... + 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: ... def __init__( self, *, - created_timestamp: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | 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", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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___EntityMeta: _TypeAlias = EntityMeta # noqa: Y015 +global___EntityMeta = EntityMeta -@_typing.final -class EntityList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class EntityList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ENTITIES_FIELD_NUMBER: _builtins.int - @_builtins.property - def entities(self) -> _containers.RepeatedCompositeFieldContainer[Global___Entity]: ... + ENTITIES_FIELD_NUMBER: builtins.int + @property + def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Entity]: ... def __init__( self, *, - entities: _abc.Iterable[Global___Entity] | None = ..., + entities: collections.abc.Iterable[global___Entity] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities"]) -> None: ... -Global___EntityList: _TypeAlias = EntityList # noqa: Y015 +global___EntityList = EntityList diff --git a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi index 125c198db48..6d5879e52cb 100644 --- a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi @@ -2,349 +2,305 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureService(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureService(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___FeatureServiceSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___FeatureServiceSpec: """User-specified specifications of this feature service.""" - - @_builtins.property - def meta(self) -> Global___FeatureServiceMeta: + @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: ... - _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: ... + 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: ... -Global___FeatureService: _TypeAlias = FeatureService # noqa: Y015 +global___FeatureService = FeatureService -@_typing.final -class FeatureServiceSpec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureServiceSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """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.""" - 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]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.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. """ - - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - - @_builtins.property - def logging_config(self) -> Global___LoggingConfig: + description: builtins.str + """Description of the feature service.""" + owner: builtins.str + """Owner of the feature service.""" + @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: _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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___FeatureServiceSpec: _TypeAlias = FeatureServiceSpec # noqa: Y015 +global___FeatureServiceSpec = FeatureServiceSpec -@_typing.final -class FeatureServiceMeta(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureServiceMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int - @_builtins.property - def created_timestamp(self) -> _timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature Service is created""" - - @_builtins.property - def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + @property + def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature Service is last updated""" - def __init__( self, *, - created_timestamp: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | 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", "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 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]: + """column names to use for partitioning""" def __init__( self, *, - path: _builtins.str = ..., - s3_endpoint_override: _builtins.str = ..., - partition_by: _abc.Iterable[_builtins.str] | None = ..., + path: builtins.str = ..., + s3_endpoint_override: builtins.str = ..., + partition_by: collections.abc.Iterable[builtins.str] | None = ..., ) -> 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: ... + def ClearField(self, field_name: typing_extensions.Literal["partition_by", b"partition_by", "path", b"path", "s3_endpoint_override", b"s3_endpoint_override"]) -> None: ... - @_typing.final - class BigQueryDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class BigQueryDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["table_ref", b"table_ref"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["table_ref", b"table_ref"]) -> None: ... - @_typing.final - class RedshiftDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class RedshiftDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... - @_typing.final - class AthenaDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class AthenaDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... - @_typing.final - class SnowflakeDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class SnowflakeDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... - @_typing.final - class CustomDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class CustomDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class ConfigEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class ConfigEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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]: ... def __init__( self, *, - kind: _builtins.str = ..., - config: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + kind: builtins.str = ..., + config: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "kind", b"kind"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "kind", b"kind"]) -> None: ... - @_typing.final - class CouchbaseColumnarDestination(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class CouchbaseColumnarDestination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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: ... 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: ... - _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 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]: ... def __init__( self, *, - featureservices: _abc.Iterable[Global___FeatureService] | None = ..., + featureservices: collections.abc.Iterable[global___FeatureService] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["featureservices", b"featureservices"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["featureservices", b"featureservices"]) -> None: ... -Global___FeatureServiceList: _TypeAlias = FeatureServiceList # noqa: Y015 +global___FeatureServiceList = FeatureServiceList diff --git a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi index c6ff726e507..dd41c2d214a 100644 --- a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi @@ -16,174 +16,151 @@ 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. """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureTable(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureTable(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___FeatureTableSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___FeatureTableSpec: """User-specified specifications of this feature table.""" - - @_builtins.property - def meta(self) -> Global___FeatureTableMeta: + @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: ... - _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: ... + 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: ... -Global___FeatureTable: _TypeAlias = FeatureTable # noqa: Y015 +global___FeatureTable = FeatureTable -@_typing.final -class FeatureTableSpec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureTableSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class LabelsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class LabelsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """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.""" - @_builtins.property - def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List names of entities to associate with the Features defined in this Feature Table. Not updatable. """ - - @_builtins.property - def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature table.""" - - @_builtins.property - def labels(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - - @_builtins.property - def max_age(self) -> _duration_pb2.Duration: + @property + def max_age(self) -> google.protobuf.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 """ - - @_builtins.property - def batch_source(self) -> _DataSource_pb2.DataSource: + @property + def batch_source(self) -> feast.core.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_') """ - - @_builtins.property - def stream_source(self) -> _DataSource_pb2.DataSource: + @property + def stream_source(self) -> feast.core.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: _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 = ..., + 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 = ..., ) -> None: ... - _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 + 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 """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: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., - revision: _builtins.int = ..., - hash: _builtins.str = ..., + created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + revision: builtins.int = ..., + hash: builtins.str = ..., ) -> 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: ... + 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: ... -Global___FeatureTableMeta: _TypeAlias = FeatureTableMeta # noqa: Y015 +global___FeatureTableMeta = FeatureTableMeta diff --git a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi index b5b8c976400..6fd1010f2e4 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi @@ -2,104 +2,91 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureViewProjection(_message.Message): +class FeatureViewProjection(google.protobuf.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: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class JoinKeyMapEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class JoinKeyMapEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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""" - 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]: + @property + def feature_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """The features of the feature view that are a part of the feature reference.""" - - @_builtins.property - def join_key_map(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def join_key_map(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Map for entity join_key overrides of feature data entity join_key to entity data join_key""" - - @_builtins.property - def batch_source(self) -> _DataSource_pb2.DataSource: + timestamp_field: builtins.str + date_partition_column: builtins.str + created_timestamp_column: builtins.str + @property + def batch_source(self) -> feast.core.DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - - @_builtins.property - def stream_source(self) -> _DataSource_pb2.DataSource: + @property + def stream_source(self) -> feast.core.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: _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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___FeatureViewProjection: _TypeAlias = FeatureViewProjection # noqa: Y015 +global___FeatureViewProjection = FeatureViewProjection diff --git a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi index fae1911f435..a6dba9d53d4 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi @@ -16,79 +16,72 @@ 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. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureViewVersionRecord(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureViewVersionRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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""" - description: _builtins.str - version_id: _builtins.str + @property + def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + 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: _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: google.protobuf.timestamp_pb2.Timestamp | None = ..., + description: builtins.str = ..., + version_id: builtins.str = ..., ) -> 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: ... + 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: ... -Global___FeatureViewVersionRecord: _TypeAlias = FeatureViewVersionRecord # noqa: Y015 +global___FeatureViewVersionRecord = FeatureViewVersionRecord -@_typing.final -class FeatureViewVersionHistory(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureViewVersionHistory(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - RECORDS_FIELD_NUMBER: _builtins.int - @_builtins.property - def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewVersionRecord]: ... + RECORDS_FIELD_NUMBER: builtins.int + @property + def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewVersionRecord]: ... def __init__( self, *, - records: _abc.Iterable[Global___FeatureViewVersionRecord] | None = ..., + records: collections.abc.Iterable[global___FeatureViewVersionRecord] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["records", b"records"]) -> None: ... -Global___FeatureViewVersionHistory: _TypeAlias = FeatureViewVersionHistory # noqa: Y015 +global___FeatureViewVersionHistory = FeatureViewVersionHistory diff --git a/sdk/python/feast/protos/feast/core/FeatureView_pb2.py b/sdk/python/feast/protos/feast/core/FeatureView_pb2.py index de3fb93cb1f..71766558c82 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\"\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') +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\"\x9f\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\x12\x10\n\x08\x64isabled\x18\x14 \x01(\x08\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\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\x12+\n\x05state\x18\x06 \x01(\x0e\x32\x1c.feast.core.FeatureViewState\"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.FeatureView*n\n\x10\x46\x65\x61tureViewState\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\r\n\tGENERATED\x10\x02\x12\x11\n\rMATERIALIZING\x10\x03\x12\x14\n\x10\x41VAILABLE_ONLINE\x10\x04\x42U\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) @@ -29,16 +29,18 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\020feast.proto.coreB\020FeatureViewProtoZ/github.com/feast-dev/feast/go/protos/feast/core' _globals['_FEATUREVIEWSPEC_TAGSENTRY']._options = None _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_options = b'8\001' + _globals['_FEATUREVIEWSTATE']._serialized_start=1463 + _globals['_FEATUREVIEWSTATE']._serialized_end=1573 _globals['_FEATUREVIEW']._serialized_start=197 _globals['_FEATUREVIEW']._serialized_end=296 _globals['_FEATUREVIEWSPEC']._serialized_start=299 - _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 + _globals['_FEATUREVIEWSPEC']._serialized_end=970 + _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_start=927 + _globals['_FEATUREVIEWSPEC_TAGSENTRY']._serialized_end=970 + _globals['_FEATUREVIEWMETA']._serialized_start=973 + _globals['_FEATUREVIEWMETA']._serialized_end=1274 + _globals['_MATERIALIZATIONINTERVAL']._serialized_start=1276 + _globals['_MATERIALIZATIONINTERVAL']._serialized_end=1395 + _globals['_FEATUREVIEWLIST']._serialized_start=1397 + _globals['_FEATUREVIEWLIST']._serialized_end=1461 # @@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 575b4dfedb1..e73bc66a555 100644 --- a/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi @@ -16,269 +16,291 @@ 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. """ - -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 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.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureView(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class _FeatureViewState: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___FeatureViewSpec: - """User-specified specifications of this feature view.""" +class _FeatureViewStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FeatureViewState.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STATE_UNSPECIFIED: _FeatureViewState.ValueType # 0 + """Default value for backward compatibility. Treated as AVAILABLE_ONLINE + for existing feature views that predate the state machine. + """ + CREATED: _FeatureViewState.ValueType # 1 + """Feature view has been registered via feast apply but no data is available.""" + GENERATED: _FeatureViewState.ValueType # 2 + """Feature engineering / offline data generation is complete. + The feature view is ready to be materialized. + """ + MATERIALIZING: _FeatureViewState.ValueType # 3 + """Materialization is currently in progress.""" + AVAILABLE_ONLINE: _FeatureViewState.ValueType # 4 + """Materialization completed. Features are available in the online store.""" - @_builtins.property - def meta(self) -> Global___FeatureViewMeta: - """System-populated metadata for this feature view.""" +class FeatureViewState(_FeatureViewState, metaclass=_FeatureViewStateEnumTypeWrapper): + """Lifecycle state of a feature view.""" +STATE_UNSPECIFIED: FeatureViewState.ValueType # 0 +"""Default value for backward compatibility. Treated as AVAILABLE_ONLINE +for existing feature views that predate the state machine. +""" +CREATED: FeatureViewState.ValueType # 1 +"""Feature view has been registered via feast apply but no data is available.""" +GENERATED: FeatureViewState.ValueType # 2 +"""Feature engineering / offline data generation is complete. +The feature view is ready to be materialized. +""" +MATERIALIZING: FeatureViewState.ValueType # 3 +"""Materialization is currently in progress.""" +AVAILABLE_ONLINE: FeatureViewState.ValueType # 4 +"""Materialization completed. Features are available in the online store.""" +global___FeatureViewState = FeatureViewState + +class FeatureView(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___FeatureViewSpec: + """User-specified specifications of this feature view.""" + @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: ... - _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: ... + 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: ... -Global___FeatureView: _TypeAlias = FeatureView # noqa: Y015 +global___FeatureView = FeatureView -@_typing.final -class FeatureViewSpec(_message.Message): +class FeatureViewSpec(google.protobuf.message.Message): """Next available id: 20 TODO(adchia): refactor common fields from this and ODFV into separate metadata proto """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 + ORG_FIELD_NUMBER: builtins.int + DISABLED_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.""" - 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]: + @property + def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of names of entities associated with this feature view.""" - - @_builtins.property - def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - - @_builtins.property - def ttl(self) -> _duration_pb2.Duration: + @property + def ttl(self) -> google.protobuf.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 """ - - @_builtins.property - def batch_source(self) -> _DataSource_pb2.DataSource: + @property + def batch_source(self) -> feast.core.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). """ - - @_builtins.property - def stream_source(self) -> _DataSource_pb2.DataSource: + 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: """Streaming DataSource from where this view can consume "online" feature data. Optional: only required for streaming feature views. """ - - @_builtins.property - def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + 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]: """List of specifications for each entity defined as part of this feature view.""" - - @_builtins.property - def source_views(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewSpec]: ... - @_builtins.property - def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: + 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: """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")""" + org: builtins.str + """Organizational unit that owns this feature view (e.g. "ads", "search").""" + disabled: builtins.bool + """Whether this feature view is disabled for serving and materialization. + When true, the feature view will not serve online features or be materialized. + Defaults to false (enabled) for backward compatibility. + """ def __init__( self, *, - 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 = ..., + 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 = ..., + org: builtins.str = ..., + disabled: builtins.bool = ..., ) -> 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: _TypeAlias = FeatureViewSpec # noqa: Y015 - -@_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 - 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: + 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", "disabled", b"disabled", "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"]) -> None: ... + +global___FeatureViewSpec = FeatureViewSpec + +class FeatureViewMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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 + STATE_FIELD_NUMBER: builtins.int + @property + def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature View is created""" - - @_builtins.property - def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + @property + def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature View is last updated""" - - @_builtins.property - def materialization_intervals(self) -> _containers.RepeatedCompositeFieldContainer[Global___MaterializationInterval]: + @property + def materialization_intervals(self) -> google.protobuf.internal.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.""" + state: global___FeatureViewState.ValueType + """Lifecycle state of this feature view.""" def __init__( self, *, - 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 = ..., + 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 = ..., + state: global___FeatureViewState.ValueType = ..., ) -> 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: ... + 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", "state", b"state", "version_id", b"version_id"]) -> None: ... -Global___FeatureViewMeta: _TypeAlias = FeatureViewMeta # noqa: Y015 +global___FeatureViewMeta = FeatureViewMeta -@_typing.final -class MaterializationInterval(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class MaterializationInterval(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - start_time: _timestamp_pb2.Timestamp | None = ..., - end_time: _timestamp_pb2.Timestamp | None = ..., + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> 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: ... + 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: ... -Global___MaterializationInterval: _TypeAlias = MaterializationInterval # noqa: Y015 +global___MaterializationInterval = MaterializationInterval -@_typing.final -class FeatureViewList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureViewList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - FEATUREVIEWS_FIELD_NUMBER: _builtins.int - @_builtins.property - def featureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureView]: ... + FEATUREVIEWS_FIELD_NUMBER: builtins.int + @property + def featureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureView]: ... def __init__( self, *, - featureviews: _abc.Iterable[Global___FeatureView] | None = ..., + featureviews: collections.abc.Iterable[global___FeatureView] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["featureviews", b"featureviews"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["featureviews", b"featureviews"]) -> None: ... -Global___FeatureViewList: _TypeAlias = FeatureViewList # noqa: Y015 +global___FeatureViewList = FeatureViewList diff --git a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi index 2355c4c10d4..aa56630424f 100644 --- a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi @@ -16,79 +16,72 @@ 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. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class FeatureSpecV2(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureSpecV2(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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: _Value_pb2.ValueType.Enum.ValueType + value_type: feast.types.Value_pb2.ValueType.Enum.ValueType """Value type of the feature. Not updatable.""" - description: _builtins.str + @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 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: _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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___FeatureSpecV2: _TypeAlias = FeatureSpecV2 # noqa: Y015 +global___FeatureSpecV2 = FeatureSpecV2 diff --git a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi index cc9a4193181..f0a704c604a 100644 --- a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi @@ -16,93 +16,81 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Infra(_message.Message): +class Infra(google.protobuf.message.Message): """Represents a set of infrastructure objects managed by Feast""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - INFRA_OBJECTS_FIELD_NUMBER: _builtins.int - @_builtins.property - def infra_objects(self) -> _containers.RepeatedCompositeFieldContainer[Global___InfraObject]: + INFRA_OBJECTS_FIELD_NUMBER: builtins.int + @property + def infra_objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InfraObject]: """List of infrastructure objects managed by Feast""" - def __init__( self, *, - infra_objects: _abc.Iterable[Global___InfraObject] | None = ..., + infra_objects: collections.abc.Iterable[global___InfraObject] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["infra_objects", b"infra_objects"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["infra_objects", b"infra_objects"]) -> None: ... -Global___Infra: _TypeAlias = Infra # noqa: Y015 +global___Infra = Infra -@_typing.final -class InfraObject(_message.Message): +class InfraObject(google.protobuf.message.Message): """Represents a single infrastructure object managed by Feast""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class CustomInfra(_message.Message): + class CustomInfra(google.protobuf.message.Message): """Allows for custom infra objects to be added""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["field", b"field"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["field", b"field"]) -> 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""" - @_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: ... + @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: ... def __init__( self, *, - infra_object_class_type: _builtins.str = ..., - datastore_table: _DatastoreTable_pb2.DatastoreTable | None = ..., - sqlite_table: _SqliteTable_pb2.SqliteTable | None = ..., - custom_infra: Global___InfraObject.CustomInfra | None = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___InfraObject: _TypeAlias = InfraObject # noqa: Y015 +global___InfraObject = InfraObject diff --git a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py index 313d93ca38d..1c264ec06c5 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\"\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') +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\"\xef\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\x12\x10\n\x08\x64isabled\x18\x13 \x01(\x08\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\"\xed\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\x12+\n\x05state\x18\x05 \x01(\x0e\x32\x1c.feast.core.FeatureViewState\"\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=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 + _globals['_ONDEMANDFEATUREVIEWSPEC']._serialized_end=1150 + _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_start=1031 + _globals['_ONDEMANDFEATUREVIEWSPEC_SOURCESENTRY']._serialized_end=1105 + _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1107 + _globals['_ONDEMANDFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1150 + _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_start=1153 + _globals['_ONDEMANDFEATUREVIEWMETA']._serialized_end=1390 + _globals['_ONDEMANDSOURCE']._serialized_start=1393 + _globals['_ONDEMANDSOURCE']._serialized_end=1593 + _globals['_USERDEFINEDFUNCTION']._serialized_start=1595 + _globals['_USERDEFINEDFUNCTION']._serialized_end=1667 + _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_start=1669 + _globals['_ONDEMANDFEATUREVIEWLIST']._serialized_end=1757 # @@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 289ffd07de3..9b5db304df7 100644 --- a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi @@ -16,299 +16,268 @@ 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. """ - -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 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 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, 13): - from warnings import deprecated as _deprecated +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import deprecated as _deprecated + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class OnDemandFeatureView(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class OnDemandFeatureView(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___OnDemandFeatureViewSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___OnDemandFeatureViewSpec: """User-specified specifications of this feature view.""" - - @_builtins.property - def meta(self) -> Global___OnDemandFeatureViewMeta: ... + @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: ... - _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: ... + 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: ... -Global___OnDemandFeatureView: _TypeAlias = OnDemandFeatureView # noqa: Y015 +global___OnDemandFeatureView = OnDemandFeatureView -@_typing.final -class OnDemandFeatureViewSpec(_message.Message): +class OnDemandFeatureViewSpec(google.protobuf.message.Message): """Next available id: 19""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class SourcesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class SourcesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - @_builtins.property - def value(self) -> Global___OnDemandSource: ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___OnDemandSource: ... def __init__( self, *, - key: _builtins.str = ..., - value: Global___OnDemandSource | None = ..., + key: builtins.str = ..., + value: global___OnDemandSource | None = ..., ) -> 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: ... + 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: ... - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 + ORG_FIELD_NUMBER: builtins.int + DISABLED_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.""" - 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]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature view.""" - - @_builtins.property - def sources(self) -> _containers.MessageMap[_builtins.str, Global___OnDemandSource]: + @property + def sources(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___OnDemandSource]: """Map of sources for this feature view.""" - - @_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: + @property + def user_defined_function(self) -> global___UserDefinedFunction: ... + @property + def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + description: builtins.str + """Description of the on demand feature view.""" + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata.""" - - @_builtins.property - def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + 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]: """List of names of entities associated with this feature view.""" - - @_builtins.property - def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + @property + def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - - @_builtins.property - def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: + singleton: builtins.bool + @property + def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: """Aggregation definitions""" - + 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").""" + disabled: builtins.bool + """Whether this feature view is disabled for serving. + When true, the feature view will not serve features. + Defaults to false (enabled) for backward compatibility. + """ def __init__( self, *, - 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 = ..., + 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 = ..., + org: builtins.str = ..., + disabled: builtins.bool = ..., ) -> 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: ... + 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", "disabled", b"disabled", "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"]) -> None: ... -Global___OnDemandFeatureViewSpec: _TypeAlias = OnDemandFeatureViewSpec # noqa: Y015 +global___OnDemandFeatureViewSpec = OnDemandFeatureViewSpec -@_typing.final -class OnDemandFeatureViewMeta(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class OnDemandFeatureViewMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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 - 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: + 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 + STATE_FIELD_NUMBER: builtins.int + @property + def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature View is created""" - - @_builtins.property - def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + @property + def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time where this Feature View is last updated""" - + 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.""" + state: feast.core.FeatureView_pb2.FeatureViewState.ValueType + """Lifecycle state of this feature view.""" def __init__( self, *, - created_timestamp: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., - current_version_number: _builtins.int = ..., - version_id: _builtins.str = ..., + 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 = ..., + state: feast.core.FeatureView_pb2.FeatureViewState.ValueType = ..., ) -> 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", "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 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", "state", b"state", "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: ... def __init__( self, *, - feature_view: _FeatureView_pb2.FeatureView | None = ..., - feature_view_projection: _FeatureViewProjection_pb2.FeatureViewProjection | None = ..., - request_data_source: _DataSource_pb2.DataSource | None = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___OnDemandSource: _TypeAlias = OnDemandSource # noqa: Y015 +global___OnDemandSource = OnDemandSource -@_deprecated("""This message has been marked as deprecated using proto message options.""") -@_typing.final -class UserDefinedFunction(_message.Message): +class UserDefinedFunction(google.protobuf.message.Message): """Serialized representation of python function.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "body_text", b"body_text", "name", b"name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "name", b"name"]) -> None: ... -Global___UserDefinedFunction: _TypeAlias = UserDefinedFunction # noqa: Y015 +global___UserDefinedFunction = UserDefinedFunction -@_typing.final -class OnDemandFeatureViewList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class OnDemandFeatureViewList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ONDEMANDFEATUREVIEWS_FIELD_NUMBER: _builtins.int - @_builtins.property - def ondemandfeatureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___OnDemandFeatureView]: ... + ONDEMANDFEATUREVIEWS_FIELD_NUMBER: builtins.int + @property + def ondemandfeatureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnDemandFeatureView]: ... def __init__( self, *, - ondemandfeatureviews: _abc.Iterable[Global___OnDemandFeatureView] | None = ..., + ondemandfeatureviews: collections.abc.Iterable[global___OnDemandFeatureView] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["ondemandfeatureviews", b"ondemandfeatureviews"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ondemandfeatureviews", b"ondemandfeatureviews"]) -> None: ... -Global___OnDemandFeatureViewList: _TypeAlias = OnDemandFeatureViewList # noqa: Y015 +global___OnDemandFeatureViewList = OnDemandFeatureViewList diff --git a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi index 4acc8ac3e1e..b2387d29465 100644 --- a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi @@ -2,62 +2,55 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 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 import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Permission(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Permission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___PermissionSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___PermissionSpec: """User-specified specifications of this permission.""" - - @_builtins.property - def meta(self) -> Global___PermissionMeta: + @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: ... - _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: ... + 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: ... -Global___Permission: _TypeAlias = Permission # noqa: Y015 +global___Permission = Permission -@_typing.final -class PermissionSpec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class PermissionSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _AuthzedAction: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _AuthzedActionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _AuthzedActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CREATE: PermissionSpec._AuthzedAction.ValueType # 0 DESCRIBE: PermissionSpec._AuthzedAction.ValueType # 1 UPDATE: PermissionSpec._AuthzedAction.ValueType # 2 @@ -78,11 +71,11 @@ class PermissionSpec(_message.Message): WRITE_OFFLINE: PermissionSpec.AuthzedAction.ValueType # 7 class _Type: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor FEATURE_VIEW: PermissionSpec._Type.ValueType # 0 ON_DEMAND_FEATURE_VIEW: PermissionSpec._Type.ValueType # 1 BATCH_FEATURE_VIEW: PermissionSpec._Type.ValueType # 2 @@ -108,108 +101,96 @@ class PermissionSpec(_message.Message): PERMISSION: PermissionSpec.Type.ValueType # 9 PROJECT: PermissionSpec.Type.ValueType # 10 - @_typing.final - class RequiredTagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class RequiredTagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """Name of the permission. Must be unique. Not updated.""" - project: _builtins.str + project: builtins.str """Name of Feast project.""" - @_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]: + @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]: """List of actions.""" - - @_builtins.property - def policy(self) -> _Policy_pb2.Policy: + @property + def policy(self) -> feast.core.Policy_pb2.Policy: """the policy.""" - - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - def __init__( self, *, - 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 = ..., + 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 = ..., ) -> None: ... - _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 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: ... def __init__( self, *, - created_timestamp: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | 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", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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___PermissionMeta: _TypeAlias = PermissionMeta # noqa: Y015 +global___PermissionMeta = PermissionMeta diff --git a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi index 6c8b6e49206..8410e396586 100644 --- a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi @@ -2,142 +2,122 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Policy(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Policy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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.""" - @_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: ... + @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: ... 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: ... - _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 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]: + """List of roles in this policy.""" def __init__( self, *, - roles: _abc.Iterable[_builtins.str] | None = ..., + roles: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["roles", b"roles"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["roles", b"roles"]) -> None: ... -Global___RoleBasedPolicy: _TypeAlias = RoleBasedPolicy # noqa: Y015 +global___RoleBasedPolicy = RoleBasedPolicy -@_typing.final -class GroupBasedPolicy(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GroupBasedPolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - GROUPS_FIELD_NUMBER: _builtins.int - @_builtins.property - def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + GROUPS_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of groups in this policy.""" - def __init__( self, *, - groups: _abc.Iterable[_builtins.str] | None = ..., + groups: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups"]) -> None: ... -Global___GroupBasedPolicy: _TypeAlias = GroupBasedPolicy # noqa: Y015 +global___GroupBasedPolicy = GroupBasedPolicy -@_typing.final -class NamespaceBasedPolicy(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class NamespaceBasedPolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAMESPACES_FIELD_NUMBER: _builtins.int - @_builtins.property - def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + NAMESPACES_FIELD_NUMBER: builtins.int + @property + def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of namespaces in this policy.""" - def __init__( self, *, - namespaces: _abc.Iterable[_builtins.str] | None = ..., + namespaces: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["namespaces", b"namespaces"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["namespaces", b"namespaces"]) -> None: ... -Global___NamespaceBasedPolicy: _TypeAlias = NamespaceBasedPolicy # noqa: Y015 +global___NamespaceBasedPolicy = NamespaceBasedPolicy -@_typing.final -class CombinedGroupNamespacePolicy(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class CombinedGroupNamespacePolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - GROUPS_FIELD_NUMBER: _builtins.int - NAMESPACES_FIELD_NUMBER: _builtins.int - @_builtins.property - def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + GROUPS_FIELD_NUMBER: builtins.int + NAMESPACES_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of groups in this policy.""" - - @_builtins.property - def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of namespaces in this policy.""" - def __init__( self, *, - groups: _abc.Iterable[_builtins.str] | None = ..., - namespaces: _abc.Iterable[_builtins.str] | None = ..., + groups: collections.abc.Iterable[builtins.str] | None = ..., + namespaces: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups", "namespaces", b"namespaces"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "namespaces", b"namespaces"]) -> None: ... -Global___CombinedGroupNamespacePolicy: _TypeAlias = CombinedGroupNamespacePolicy # noqa: Y015 +global___CombinedGroupNamespacePolicy = CombinedGroupNamespacePolicy diff --git a/sdk/python/feast/protos/feast/core/Project_pb2.pyi b/sdk/python/feast/protos/feast/core/Project_pb2.pyi index d3844463544..e3cce2ec425 100644 --- a/sdk/python/feast/protos/feast/core/Project_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Project_pb2.pyi @@ -16,121 +16,104 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Project(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Project(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___ProjectSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___ProjectSpec: """User-specified specifications of this entity.""" - - @_builtins.property - def meta(self) -> Global___ProjectMeta: + @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: ... - _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: ... + 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: ... -Global___Project: _TypeAlias = Project # noqa: Y015 +global___Project = Project -@_typing.final -class ProjectSpec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ProjectSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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""" - owner: _builtins.str - """Owner of the Project""" - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - + owner: builtins.str + """Owner of the Project""" def __init__( self, *, - name: _builtins.str = ..., - description: _builtins.str = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - owner: _builtins.str = ..., + name: builtins.str = ..., + description: builtins.str = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + owner: builtins.str = ..., ) -> 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: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "owner", b"owner", "tags", b"tags"]) -> None: ... -Global___ProjectSpec: _TypeAlias = ProjectSpec # noqa: Y015 +global___ProjectSpec = ProjectSpec -@_typing.final -class ProjectMeta(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ProjectMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int - @_builtins.property - def created_timestamp(self) -> _timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time when the Project is created""" - - @_builtins.property - def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + @property + def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time when the Project is last updated with registry changes (Apply stage)""" - def __init__( self, *, - created_timestamp: _timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | 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", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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___ProjectMeta: _TypeAlias = ProjectMeta # noqa: Y015 +global___ProjectMeta = ProjectMeta diff --git a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi index 5aafdaf21fd..29bd76323e3 100644 --- a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi @@ -16,144 +16,130 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -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 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 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, 13): - from warnings import deprecated as _deprecated +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import deprecated as _deprecated + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Registry(_message.Message): +class Registry(google.protobuf.message.Message): """Next id: 19""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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 - 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 + @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 """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""" - @_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: ... + @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: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___Registry: _TypeAlias = Registry # noqa: Y015 +global___Registry = Registry -@_typing.final -class ProjectMetadata(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ProjectMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project", "project_uuid", b"project_uuid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["project", b"project", "project_uuid", b"project_uuid"]) -> None: ... -Global___ProjectMetadata: _TypeAlias = ProjectMetadata # noqa: Y015 +global___ProjectMetadata = ProjectMetadata diff --git a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi index e2c1fb27c4f..47525b64ede 100644 --- a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi @@ -16,202 +16,177 @@ 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. """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class SavedDatasetSpec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class SavedDatasetSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """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.""" - full_feature_names: _builtins.bool - """Whether full feature names are used in stored data""" - feature_service_name: _builtins.str - """Optional and only populated if generated from a feature service fetch""" - @_builtins.property - def features(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """list of feature references with format ":" """ - - @_builtins.property - def join_keys(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def join_keys(self) -> google.protobuf.internal.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]: + 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 + """Optional and only populated if generated from a feature service fetch""" + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - def __init__( self, *, - 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 = ..., + 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 = ..., ) -> None: ... - _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 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: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> None: ... - _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""" + 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: ... - @_builtins.property - def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: - """Time when this saved dataset is last updated""" +global___SavedDatasetStorage = SavedDatasetStorage - @_builtins.property - def min_event_timestamp(self) -> _timestamp_pb2.Timestamp: - """Min timestamp in the dataset (needed for retrieval)""" +class SavedDatasetMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_builtins.property - def max_event_timestamp(self) -> _timestamp_pb2.Timestamp: + 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: + """Time when this saved dataset is created""" + @property + def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time when this saved dataset is last updated""" + @property + def min_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Min timestamp in the dataset (needed for retrieval)""" + @property + def max_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """Max timestamp in the dataset (needed for retrieval)""" - def __init__( self, *, - 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 = ..., + 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 = ..., ) -> None: ... - _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 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: ... def __init__( self, *, - spec: Global___SavedDatasetSpec | None = ..., - meta: Global___SavedDatasetMeta | None = ..., + spec: global___SavedDatasetSpec | None = ..., + meta: global___SavedDatasetMeta | None = ..., ) -> 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: ... + 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: ... -Global___SavedDataset: _TypeAlias = SavedDataset # noqa: Y015 +global___SavedDataset = SavedDataset diff --git a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi index 43d97f7d188..10ecebf362b 100644 --- a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi @@ -16,39 +16,35 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -import builtins as _builtins +import builtins +import google.protobuf.descriptor +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class SqliteTable(_message.Message): +class SqliteTable(google.protobuf.message.Message): """Represents a Sqlite table""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "path", b"path"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "path", b"path"]) -> None: ... -Global___SqliteTable: _TypeAlias = SqliteTable # noqa: Y015 +global___SqliteTable = SqliteTable diff --git a/sdk/python/feast/protos/feast/core/Store_pb2.pyi b/sdk/python/feast/protos/feast/core/Store_pb2.pyi index 718654b267c..5ee957d184f 100644 --- a/sdk/python/feast/protos/feast/core/Store_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Store_pb2.pyi @@ -16,39 +16,37 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Store(_message.Message): +class Store(google.protobuf.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: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _StoreType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _StoreTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _StoreTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INVALID: Store._StoreType.ValueType # 0 REDIS: Store._StoreType.ValueType # 1 """Redis stores a FeatureRow element as a key, value pair. @@ -78,51 +76,48 @@ class Store(_message.Message): """ REDIS_CLUSTER: Store.StoreType.ValueType # 4 - @_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 + 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 """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: ... - _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: ... + 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: ... - @_typing.final - class RedisClusterConfig(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class RedisClusterConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _ReadFrom: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _ReadFromEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _ReadFromEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor MASTER: Store.RedisClusterConfig._ReadFrom.ValueType # 0 MASTER_PREFERRED: Store.RedisClusterConfig._ReadFrom.ValueType # 1 REPLICA: Store.RedisClusterConfig._ReadFrom.ValueType # 2 @@ -136,52 +131,50 @@ class Store(_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: ... - _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: ... + 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: ... - @_typing.final - class Subscription(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class Subscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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] - * @@ -189,7 +182,7 @@ class Store(_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 "*" @@ -198,50 +191,44 @@ class Store(_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: ... - _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 + 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 """Name of the store.""" - type: Global___Store.StoreType.ValueType + type: global___Store.StoreType.ValueType """Type of store.""" - @_builtins.property - def subscriptions(self) -> _containers.RepeatedCompositeFieldContainer[Global___Store.Subscription]: + @property + def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Store.Subscription]: """Feature sets to subscribe to.""" - - @_builtins.property - def redis_config(self) -> Global___Store.RedisConfig: ... - @_builtins.property - def redis_cluster_config(self) -> Global___Store.RedisClusterConfig: ... + @property + def redis_config(self) -> global___Store.RedisConfig: ... + @property + def redis_cluster_config(self) -> global___Store.RedisClusterConfig: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> None: ... - _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 + 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 diff --git a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.py index 85a61d06005..9222c1bd2ae 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\"\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') +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\"\xbe\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\x12\x10\n\x08\x64isabled\x18\x17 \x01(\x08\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=1194 - _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1151 - _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1194 + _globals['_STREAMFEATUREVIEWSPEC']._serialized_end=1212 + _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_start=1169 + _globals['_STREAMFEATUREVIEWSPEC_TAGSENTRY']._serialized_end=1212 # @@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 3fafb889540..3fa504654f4 100644 --- a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi @@ -16,206 +16,185 @@ 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. """ - -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 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 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, 13): - from warnings import deprecated as _deprecated +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import deprecated as _deprecated + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class StreamFeatureView(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class StreamFeatureView(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SPEC_FIELD_NUMBER: _builtins.int - META_FIELD_NUMBER: _builtins.int - @_builtins.property - def spec(self) -> Global___StreamFeatureViewSpec: + SPEC_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + @property + def spec(self) -> global___StreamFeatureViewSpec: """User-specified specifications of this feature view.""" - - @_builtins.property - def meta(self) -> _FeatureView_pb2.FeatureViewMeta: ... + @property + def meta(self) -> feast.core.FeatureView_pb2.FeatureViewMeta: ... def __init__( self, *, - spec: Global___StreamFeatureViewSpec | None = ..., - meta: _FeatureView_pb2.FeatureViewMeta | None = ..., + spec: global___StreamFeatureViewSpec | None = ..., + meta: feast.core.FeatureView_pb2.FeatureViewMeta | None = ..., ) -> 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: ... + 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: ... -Global___StreamFeatureView: _TypeAlias = StreamFeatureView # noqa: Y015 +global___StreamFeatureView = StreamFeatureView -@_typing.final -class StreamFeatureViewSpec(_message.Message): +class StreamFeatureViewSpec(google.protobuf.message.Message): """Next available id: 23""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 + ORG_FIELD_NUMBER: builtins.int + DISABLED_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.""" - 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]: + @property + def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of names of entities associated with this feature view.""" - - @_builtins.property - def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + @property + def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - - @_builtins.property - def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: + @property + def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + description: builtins.str + """Description of the feature view.""" + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - - @_builtins.property - def ttl(self) -> _duration_pb2.Duration: + owner: builtins.str + """Owner of the feature view.""" + @property + def ttl(self) -> google.protobuf.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 """ - - @_builtins.property - def batch_source(self) -> _DataSource_pb2.DataSource: + @property + def batch_source(self) -> feast.core.DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - - @_builtins.property - def stream_source(self) -> _DataSource_pb2.DataSource: + @property + def stream_source(self) -> feast.core.DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data.""" - - @_builtins.property - @_deprecated("""This field has been marked as deprecated using proto field options.""") - def user_defined_function(self) -> _OnDemandFeatureView_pb2.UserDefinedFunction: + online: builtins.bool + """Whether these features should be served online or not""" + @property + def user_defined_function(self) -> feast.core.OnDemandFeatureView_pb2.UserDefinedFunction: """Serialized function that is encoded in the streamfeatureview""" - - @_builtins.property - def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: + mode: builtins.str + """Mode of execution""" + @property + def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: """Aggregation definitions""" - - @_builtins.property - def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: + timestamp_field: builtins.str + """Timestamp field for aggregation""" + @property + def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - - @_builtins.property - def tiling_hop_size(self) -> _duration_pb2.Duration: + enable_tiling: builtins.bool + """Enable tiling for efficient window aggregation""" + @property + def tiling_hop_size(self) -> google.protobuf.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")""" + org: builtins.str + """Organizational unit that owns this stream feature view (e.g. "ads", "search").""" + disabled: builtins.bool + """Whether this feature view is disabled for serving and materialization. + When true, the feature view will not serve online features or be materialized. + Defaults to false (enabled) for backward compatibility. + """ def __init__( self, *, - 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 = ..., + 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 = ..., + org: builtins.str = ..., + disabled: builtins.bool = ..., ) -> 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: ... + 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", "disabled", b"disabled", "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"]) -> None: ... -Global___StreamFeatureViewSpec: _TypeAlias = StreamFeatureViewSpec # noqa: Y015 +global___StreamFeatureViewSpec = StreamFeatureViewSpec diff --git a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi index d8aacf9f812..fb56ab5bc73 100644 --- a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi @@ -2,94 +2,83 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -import builtins as _builtins +import builtins +import google.protobuf.descriptor +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class UserDefinedFunctionV2(_message.Message): +class UserDefinedFunctionV2(google.protobuf.message.Message): """Serialized representation of python function.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _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: ... + def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "mode", b"mode", "name", b"name"]) -> None: ... -Global___UserDefinedFunctionV2: _TypeAlias = UserDefinedFunctionV2 # noqa: Y015 +global___UserDefinedFunctionV2 = UserDefinedFunctionV2 -@_typing.final -class FeatureTransformationV2(_message.Message): +class FeatureTransformationV2(google.protobuf.message.Message): """A feature transformation executed as a user-defined function""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... 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: ... - _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: ... + 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: ... -Global___FeatureTransformationV2: _TypeAlias = FeatureTransformationV2 # noqa: Y015 +global___FeatureTransformationV2 = FeatureTransformationV2 -@_typing.final -class SubstraitTransformationV2(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class SubstraitTransformationV2(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"]) -> None: ... -Global___SubstraitTransformationV2: _TypeAlias = SubstraitTransformationV2 # noqa: Y015 +global___SubstraitTransformationV2 = SubstraitTransformationV2 diff --git a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi index 16cc081f054..93da1e0f5e8 100644 --- a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi @@ -16,139 +16,121 @@ 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. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing +import typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class GEValidationProfiler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GEValidationProfiler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class UserDefinedProfiler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class UserDefinedProfiler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["body", b"body"]) -> None: ... - PROFILER_FIELD_NUMBER: _builtins.int - @_builtins.property - def profiler(self) -> Global___GEValidationProfiler.UserDefinedProfiler: ... + PROFILER_FIELD_NUMBER: builtins.int + @property + def profiler(self) -> global___GEValidationProfiler.UserDefinedProfiler: ... def __init__( self, *, - profiler: Global___GEValidationProfiler.UserDefinedProfiler | None = ..., + profiler: global___GEValidationProfiler.UserDefinedProfiler | None = ..., ) -> 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: ... + 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: ... -Global___GEValidationProfiler: _TypeAlias = GEValidationProfiler # noqa: Y015 +global___GEValidationProfiler = GEValidationProfiler -@_typing.final -class GEValidationProfile(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GEValidationProfile(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["expectation_suite", b"expectation_suite"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["expectation_suite", b"expectation_suite"]) -> None: ... -Global___GEValidationProfile: _TypeAlias = GEValidationProfile # noqa: Y015 +global___GEValidationProfile = GEValidationProfile -@_typing.final -class ValidationReference(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ValidationReference(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 + 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 """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""" - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """User defined metadata""" - - @_builtins.property - def ge_profiler(self) -> Global___GEValidationProfiler: ... - @_builtins.property - def ge_profile(self) -> Global___GEValidationProfile: ... + @property + def ge_profiler(self) -> global___GEValidationProfiler: ... + @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: _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: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ge_profiler: global___GEValidationProfiler | None = ..., + ge_profile: global___GEValidationProfile | None = ..., ) -> None: ... - _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 + 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 diff --git a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi index 7dd137bc89e..a1f1b99365d 100644 --- a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi @@ -2,2053 +2,1841 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -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 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 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class PaginationParams(_message.Message): +class PaginationParams(google.protobuf.message.Message): """Common pagination and sorting messages""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["limit", b"limit", "page", b"page"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["limit", b"limit", "page", b"page"]) -> None: ... -Global___PaginationParams: _TypeAlias = PaginationParams # noqa: Y015 +global___PaginationParams = PaginationParams -@_typing.final -class SortingParams(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class SortingParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"]) -> None: ... -Global___SortingParams: _TypeAlias = SortingParams # noqa: Y015 +global___SortingParams = SortingParams -@_typing.final -class PaginationMetadata(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class PaginationMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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: ... + 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: ... -Global___PaginationMetadata: _TypeAlias = PaginationMetadata # noqa: Y015 +global___PaginationMetadata = PaginationMetadata -@_typing.final -class RefreshRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class RefreshRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["project", b"project"]) -> None: ... -Global___RefreshRequest: _TypeAlias = RefreshRequest # noqa: Y015 +global___RefreshRequest = RefreshRequest -@_typing.final -class UpdateInfraRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class UpdateInfraRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - infra: _InfraObject_pb2.Infra | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + infra: feast.core.InfraObject_pb2.Infra | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___UpdateInfraRequest: _TypeAlias = UpdateInfraRequest # noqa: Y015 +global___UpdateInfraRequest = UpdateInfraRequest -@_typing.final -class GetInfraRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetInfraRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... -Global___GetInfraRequest: _TypeAlias = GetInfraRequest # noqa: Y015 +global___GetInfraRequest = GetInfraRequest -@_typing.final -class ListProjectMetadataRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListProjectMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... -Global___ListProjectMetadataRequest: _TypeAlias = ListProjectMetadataRequest # noqa: Y015 +global___ListProjectMetadataRequest = ListProjectMetadataRequest -@_typing.final -class ListProjectMetadataResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListProjectMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PROJECT_METADATA_FIELD_NUMBER: _builtins.int - @_builtins.property - def project_metadata(self) -> _containers.RepeatedCompositeFieldContainer[_Registry_pb2.ProjectMetadata]: ... + PROJECT_METADATA_FIELD_NUMBER: builtins.int + @property + def project_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Registry_pb2.ProjectMetadata]: ... def __init__( self, *, - project_metadata: _abc.Iterable[_Registry_pb2.ProjectMetadata] | None = ..., + project_metadata: collections.abc.Iterable[feast.core.Registry_pb2.ProjectMetadata] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["project_metadata", b"project_metadata"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["project_metadata", b"project_metadata"]) -> None: ... -Global___ListProjectMetadataResponse: _TypeAlias = ListProjectMetadataResponse # noqa: Y015 +global___ListProjectMetadataResponse = ListProjectMetadataResponse -@_typing.final -class ApplyMaterializationRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ApplyMaterializationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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 - 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: ... + 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 def __init__( self, *, - feature_view: _FeatureView_pb2.FeatureView | None = ..., - project: _builtins.str = ..., - start_date: _timestamp_pb2.Timestamp | None = ..., - end_date: _timestamp_pb2.Timestamp | None = ..., - commit: _builtins.bool = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___ApplyMaterializationRequest: _TypeAlias = ApplyMaterializationRequest # noqa: Y015 +global___ApplyMaterializationRequest = ApplyMaterializationRequest -@_typing.final -class ApplyEntityRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ApplyEntityRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - entity: _Entity_pb2.Entity | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + entity: feast.core.Entity_pb2.Entity | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyEntityRequest: _TypeAlias = ApplyEntityRequest # noqa: Y015 +global___ApplyEntityRequest = ApplyEntityRequest -@_typing.final -class GetEntityRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetEntityRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetEntityRequest: _TypeAlias = GetEntityRequest # noqa: Y015 +global___GetEntityRequest = GetEntityRequest -@_typing.final -class ListEntitiesRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListEntitiesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListEntitiesRequest: _TypeAlias = ListEntitiesRequest # noqa: Y015 +global___ListEntitiesRequest = ListEntitiesRequest -@_typing.final -class ListEntitiesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListEntitiesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - entities: _abc.Iterable[_Entity_pb2.Entity] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + entities: collections.abc.Iterable[feast.core.Entity_pb2.Entity] | 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["entities", b"entities", "pagination", b"pagination"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListEntitiesResponse: _TypeAlias = ListEntitiesResponse # noqa: Y015 +global___ListEntitiesResponse = ListEntitiesResponse -@_typing.final -class DeleteEntityRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteEntityRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteEntityRequest: _TypeAlias = DeleteEntityRequest # noqa: Y015 +global___DeleteEntityRequest = DeleteEntityRequest -@_typing.final -class ApplyDataSourceRequest(_message.Message): +class ApplyDataSourceRequest(google.protobuf.message.Message): """DataSources""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - data_source: _DataSource_pb2.DataSource | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + data_source: feast.core.DataSource_pb2.DataSource | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyDataSourceRequest: _TypeAlias = ApplyDataSourceRequest # noqa: Y015 +global___ApplyDataSourceRequest = ApplyDataSourceRequest -@_typing.final -class GetDataSourceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetDataSourceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetDataSourceRequest: _TypeAlias = GetDataSourceRequest # noqa: Y015 +global___GetDataSourceRequest = GetDataSourceRequest -@_typing.final -class ListDataSourcesRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListDataSourcesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListDataSourcesRequest: _TypeAlias = ListDataSourcesRequest # noqa: Y015 +global___ListDataSourcesRequest = ListDataSourcesRequest -@_typing.final -class ListDataSourcesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListDataSourcesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - data_sources: _abc.Iterable[_DataSource_pb2.DataSource] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + data_sources: collections.abc.Iterable[feast.core.DataSource_pb2.DataSource] | 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["data_sources", b"data_sources", "pagination", b"pagination"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListDataSourcesResponse: _TypeAlias = ListDataSourcesResponse # noqa: Y015 +global___ListDataSourcesResponse = ListDataSourcesResponse -@_typing.final -class DeleteDataSourceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteDataSourceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteDataSourceRequest: _TypeAlias = DeleteDataSourceRequest # noqa: Y015 +global___DeleteDataSourceRequest = DeleteDataSourceRequest -@_typing.final -class ApplyFeatureViewRequest(_message.Message): +class ApplyFeatureViewRequest(google.protobuf.message.Message): """FeatureViews""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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 - 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: ... + 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 def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___ApplyFeatureViewRequest: _TypeAlias = ApplyFeatureViewRequest # noqa: Y015 +global___ApplyFeatureViewRequest = ApplyFeatureViewRequest -@_typing.final -class GetFeatureViewRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetFeatureViewRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetFeatureViewRequest: _TypeAlias = GetFeatureViewRequest # noqa: Y015 +global___GetFeatureViewRequest = GetFeatureViewRequest -@_typing.final -class ListFeatureViewsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListFeatureViewsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListFeatureViewsRequest: _TypeAlias = ListFeatureViewsRequest # noqa: Y015 +global___ListFeatureViewsRequest = ListFeatureViewsRequest -@_typing.final -class ListFeatureViewsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListFeatureViewsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - feature_views: _abc.Iterable[_FeatureView_pb2.FeatureView] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + feature_views: collections.abc.Iterable[feast.core.FeatureView_pb2.FeatureView] | 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: ... + 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___ListFeatureViewsResponse: _TypeAlias = ListFeatureViewsResponse # noqa: Y015 +global___ListFeatureViewsResponse = ListFeatureViewsResponse -@_typing.final -class DeleteFeatureViewRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteFeatureViewRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteFeatureViewRequest: _TypeAlias = DeleteFeatureViewRequest # noqa: Y015 +global___DeleteFeatureViewRequest = DeleteFeatureViewRequest -@_typing.final -class AnyFeatureView(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class AnyFeatureView(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - feature_view: _FeatureView_pb2.FeatureView | None = ..., - on_demand_feature_view: _OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., - stream_feature_view: _StreamFeatureView_pb2.StreamFeatureView | None = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___AnyFeatureView: _TypeAlias = AnyFeatureView # noqa: Y015 +global___AnyFeatureView = AnyFeatureView -@_typing.final -class GetAnyFeatureViewRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetAnyFeatureViewRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetAnyFeatureViewRequest: _TypeAlias = GetAnyFeatureViewRequest # noqa: Y015 +global___GetAnyFeatureViewRequest = GetAnyFeatureViewRequest -@_typing.final -class GetAnyFeatureViewResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetAnyFeatureViewResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ANY_FEATURE_VIEW_FIELD_NUMBER: _builtins.int - @_builtins.property - def any_feature_view(self) -> Global___AnyFeatureView: ... + ANY_FEATURE_VIEW_FIELD_NUMBER: builtins.int + @property + def any_feature_view(self) -> global___AnyFeatureView: ... def __init__( self, *, - any_feature_view: Global___AnyFeatureView | None = ..., + any_feature_view: global___AnyFeatureView | None = ..., ) -> 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: ... + 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: ... -Global___GetAnyFeatureViewResponse: _TypeAlias = GetAnyFeatureViewResponse # noqa: Y015 +global___GetAnyFeatureViewResponse = GetAnyFeatureViewResponse -@_typing.final -class ListAllFeatureViewsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListAllFeatureViewsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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): + 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): """StreamFeatureView""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetStreamFeatureViewRequest: _TypeAlias = GetStreamFeatureViewRequest # noqa: Y015 +global___GetStreamFeatureViewRequest = GetStreamFeatureViewRequest -@_typing.final -class ListStreamFeatureViewsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListStreamFeatureViewsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListStreamFeatureViewsRequest: _TypeAlias = ListStreamFeatureViewsRequest # noqa: Y015 +global___ListStreamFeatureViewsRequest = ListStreamFeatureViewsRequest -@_typing.final -class ListStreamFeatureViewsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListStreamFeatureViewsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - stream_feature_views: _abc.Iterable[_StreamFeatureView_pb2.StreamFeatureView] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + stream_feature_views: collections.abc.Iterable[feast.core.StreamFeatureView_pb2.StreamFeatureView] | 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", "stream_feature_views", b"stream_feature_views"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListStreamFeatureViewsResponse: _TypeAlias = ListStreamFeatureViewsResponse # noqa: Y015 +global___ListStreamFeatureViewsResponse = ListStreamFeatureViewsResponse -@_typing.final -class GetOnDemandFeatureViewRequest(_message.Message): +class GetOnDemandFeatureViewRequest(google.protobuf.message.Message): """OnDemandFeatureView""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetOnDemandFeatureViewRequest: _TypeAlias = GetOnDemandFeatureViewRequest # noqa: Y015 +global___GetOnDemandFeatureViewRequest = GetOnDemandFeatureViewRequest -@_typing.final -class ListOnDemandFeatureViewsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListOnDemandFeatureViewsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListOnDemandFeatureViewsRequest: _TypeAlias = ListOnDemandFeatureViewsRequest # noqa: Y015 +global___ListOnDemandFeatureViewsRequest = ListOnDemandFeatureViewsRequest -@_typing.final -class ListOnDemandFeatureViewsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListOnDemandFeatureViewsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - on_demand_feature_views: _abc.Iterable[_OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + on_demand_feature_views: collections.abc.Iterable[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView] | 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["on_demand_feature_views", b"on_demand_feature_views", "pagination", b"pagination"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListOnDemandFeatureViewsResponse: _TypeAlias = ListOnDemandFeatureViewsResponse # noqa: Y015 +global___ListOnDemandFeatureViewsResponse = ListOnDemandFeatureViewsResponse -@_typing.final -class ApplyFeatureServiceRequest(_message.Message): +class ApplyFeatureServiceRequest(google.protobuf.message.Message): """FeatureServices""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - feature_service: _FeatureService_pb2.FeatureService | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + feature_service: feast.core.FeatureService_pb2.FeatureService | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyFeatureServiceRequest: _TypeAlias = ApplyFeatureServiceRequest # noqa: Y015 +global___ApplyFeatureServiceRequest = ApplyFeatureServiceRequest -@_typing.final -class GetFeatureServiceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetFeatureServiceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetFeatureServiceRequest: _TypeAlias = GetFeatureServiceRequest # noqa: Y015 +global___GetFeatureServiceRequest = GetFeatureServiceRequest -@_typing.final -class ListFeatureServicesRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListFeatureServicesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___ListFeatureServicesRequest: _TypeAlias = ListFeatureServicesRequest # noqa: Y015 +global___ListFeatureServicesRequest = ListFeatureServicesRequest -@_typing.final -class ListFeatureServicesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListFeatureServicesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - feature_services: _abc.Iterable[_FeatureService_pb2.FeatureService] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + feature_services: collections.abc.Iterable[feast.core.FeatureService_pb2.FeatureService] | 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_services", b"feature_services", "pagination", b"pagination"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListFeatureServicesResponse: _TypeAlias = ListFeatureServicesResponse # noqa: Y015 +global___ListFeatureServicesResponse = ListFeatureServicesResponse -@_typing.final -class DeleteFeatureServiceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteFeatureServiceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteFeatureServiceRequest: _TypeAlias = DeleteFeatureServiceRequest # noqa: Y015 +global___DeleteFeatureServiceRequest = DeleteFeatureServiceRequest -@_typing.final -class ApplySavedDatasetRequest(_message.Message): +class ApplySavedDatasetRequest(google.protobuf.message.Message): """SavedDataset""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - saved_dataset: _SavedDataset_pb2.SavedDataset | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + saved_dataset: feast.core.SavedDataset_pb2.SavedDataset | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplySavedDatasetRequest: _TypeAlias = ApplySavedDatasetRequest # noqa: Y015 +global___ApplySavedDatasetRequest = ApplySavedDatasetRequest -@_typing.final -class GetSavedDatasetRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetSavedDatasetRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetSavedDatasetRequest: _TypeAlias = GetSavedDatasetRequest # noqa: Y015 +global___GetSavedDatasetRequest = GetSavedDatasetRequest -@_typing.final -class ListSavedDatasetsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListSavedDatasetsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListSavedDatasetsRequest: _TypeAlias = ListSavedDatasetsRequest # noqa: Y015 +global___ListSavedDatasetsRequest = ListSavedDatasetsRequest -@_typing.final -class ListSavedDatasetsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListSavedDatasetsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - saved_datasets: _abc.Iterable[_SavedDataset_pb2.SavedDataset] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + saved_datasets: collections.abc.Iterable[feast.core.SavedDataset_pb2.SavedDataset] | 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", "saved_datasets", b"saved_datasets"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListSavedDatasetsResponse: _TypeAlias = ListSavedDatasetsResponse # noqa: Y015 +global___ListSavedDatasetsResponse = ListSavedDatasetsResponse -@_typing.final -class DeleteSavedDatasetRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteSavedDatasetRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteSavedDatasetRequest: _TypeAlias = DeleteSavedDatasetRequest # noqa: Y015 +global___DeleteSavedDatasetRequest = DeleteSavedDatasetRequest -@_typing.final -class ApplyValidationReferenceRequest(_message.Message): +class ApplyValidationReferenceRequest(google.protobuf.message.Message): """ValidationReference""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - validation_reference: _ValidationProfile_pb2.ValidationReference | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + validation_reference: feast.core.ValidationProfile_pb2.ValidationReference | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyValidationReferenceRequest: _TypeAlias = ApplyValidationReferenceRequest # noqa: Y015 +global___ApplyValidationReferenceRequest = ApplyValidationReferenceRequest -@_typing.final -class GetValidationReferenceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetValidationReferenceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetValidationReferenceRequest: _TypeAlias = GetValidationReferenceRequest # noqa: Y015 +global___GetValidationReferenceRequest = GetValidationReferenceRequest -@_typing.final -class ListValidationReferencesRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListValidationReferencesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListValidationReferencesRequest: _TypeAlias = ListValidationReferencesRequest # noqa: Y015 +global___ListValidationReferencesRequest = ListValidationReferencesRequest -@_typing.final -class ListValidationReferencesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListValidationReferencesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - validation_references: _abc.Iterable[_ValidationProfile_pb2.ValidationReference] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + validation_references: collections.abc.Iterable[feast.core.ValidationProfile_pb2.ValidationReference] | 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", "validation_references", b"validation_references"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListValidationReferencesResponse: _TypeAlias = ListValidationReferencesResponse # noqa: Y015 +global___ListValidationReferencesResponse = ListValidationReferencesResponse -@_typing.final -class DeleteValidationReferenceRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteValidationReferenceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeleteValidationReferenceRequest: _TypeAlias = DeleteValidationReferenceRequest # noqa: Y015 +global___DeleteValidationReferenceRequest = DeleteValidationReferenceRequest -@_typing.final -class ApplyPermissionRequest(_message.Message): +class ApplyPermissionRequest(google.protobuf.message.Message): """Permissions""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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 def __init__( self, *, - permission: _Permission_pb2.Permission | None = ..., - project: _builtins.str = ..., - commit: _builtins.bool = ..., + permission: feast.core.Permission_pb2.Permission | None = ..., + project: builtins.str = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyPermissionRequest: _TypeAlias = ApplyPermissionRequest # noqa: Y015 +global___ApplyPermissionRequest = ApplyPermissionRequest -@_typing.final -class GetPermissionRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetPermissionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... -Global___GetPermissionRequest: _TypeAlias = GetPermissionRequest # noqa: Y015 +global___GetPermissionRequest = GetPermissionRequest -@_typing.final -class ListPermissionsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListPermissionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - 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: ... + 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: ... def __init__( self, *, - project: _builtins.str = ..., - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + project: builtins.str = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListPermissionsRequest: _TypeAlias = ListPermissionsRequest # noqa: Y015 +global___ListPermissionsRequest = ListPermissionsRequest -@_typing.final -class ListPermissionsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListPermissionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - permissions: _abc.Iterable[_Permission_pb2.Permission] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + permissions: collections.abc.Iterable[feast.core.Permission_pb2.Permission] | 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", "permissions", b"permissions"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListPermissionsResponse: _TypeAlias = ListPermissionsResponse # noqa: Y015 +global___ListPermissionsResponse = ListPermissionsResponse -@_typing.final -class DeletePermissionRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeletePermissionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... -Global___DeletePermissionRequest: _TypeAlias = DeletePermissionRequest # noqa: Y015 +global___DeletePermissionRequest = DeletePermissionRequest -@_typing.final -class ApplyProjectRequest(_message.Message): +class ApplyProjectRequest(google.protobuf.message.Message): """Projects""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PROJECT_FIELD_NUMBER: _builtins.int - COMMIT_FIELD_NUMBER: _builtins.int - commit: _builtins.bool - @_builtins.property - def project(self) -> _Project_pb2.Project: ... + PROJECT_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + @property + def project(self) -> feast.core.Project_pb2.Project: ... + commit: builtins.bool def __init__( self, *, - project: _Project_pb2.Project | None = ..., - commit: _builtins.bool = ..., + project: feast.core.Project_pb2.Project | None = ..., + commit: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___ApplyProjectRequest: _TypeAlias = ApplyProjectRequest # noqa: Y015 +global___ApplyProjectRequest = ApplyProjectRequest -@_typing.final -class GetProjectRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetProjectRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name"]) -> None: ... -Global___GetProjectRequest: _TypeAlias = GetProjectRequest # noqa: Y015 +global___GetProjectRequest = GetProjectRequest -@_typing.final -class ListProjectsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListProjectsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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 - @_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: ... + 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: ... def __init__( self, *, - allow_cache: _builtins.bool = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - pagination: Global___PaginationParams | None = ..., - sorting: Global___SortingParams | None = ..., + allow_cache: builtins.bool = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + 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", "pagination", b"pagination", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListProjectsRequest: _TypeAlias = ListProjectsRequest # noqa: Y015 +global___ListProjectsRequest = ListProjectsRequest -@_typing.final -class ListProjectsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ListProjectsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - projects: _abc.Iterable[_Project_pb2.Project] | None = ..., - pagination: Global___PaginationMetadata | None = ..., + projects: collections.abc.Iterable[feast.core.Project_pb2.Project] | 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", "projects", b"projects"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -Global___ListProjectsResponse: _TypeAlias = ListProjectsResponse # noqa: Y015 +global___ListProjectsResponse = ListProjectsResponse -@_typing.final -class DeleteProjectRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DeleteProjectRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name"]) -> None: ... -Global___DeleteProjectRequest: _TypeAlias = DeleteProjectRequest # noqa: Y015 +global___DeleteProjectRequest = DeleteProjectRequest -@_typing.final -class EntityReference(_message.Message): +class EntityReference(google.protobuf.message.Message): """Lineage""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "type", b"type"]) -> None: ... + +global___EntityReference = EntityReference -Global___EntityReference: _TypeAlias = EntityReference # noqa: Y015 +class EntityRelation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor -@_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: ... + SOURCE_FIELD_NUMBER: builtins.int + TARGET_FIELD_NUMBER: builtins.int + @property + def source(self) -> global___EntityReference: ... + @property + def target(self) -> global___EntityReference: ... def __init__( self, *, - 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 + 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 - 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: ... + 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: ... 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: ... - _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: ... + 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: ... -Global___GetRegistryLineageRequest: _TypeAlias = GetRegistryLineageRequest # noqa: Y015 +global___GetRegistryLineageRequest = GetRegistryLineageRequest -@_typing.final -class GetRegistryLineageResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetRegistryLineageResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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 - @_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: ... + 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: ... def __init__( self, *, - relationships: _abc.Iterable[Global___EntityRelation] | None = ..., - indirect_relationships: _abc.Iterable[Global___EntityRelation] | None = ..., - relationships_pagination: Global___PaginationMetadata | None = ..., - indirect_relationships_pagination: Global___PaginationMetadata | None = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___GetRegistryLineageResponse: _TypeAlias = GetRegistryLineageResponse # noqa: Y015 +global___GetRegistryLineageResponse = GetRegistryLineageResponse -@_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): +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): """Feature messages""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___GetFeatureRequest: _TypeAlias = GetFeatureRequest # noqa: Y015 +global___GetFeatureRequest = GetFeatureRequest diff --git a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi index 4e40abd912f..f87109e0fa5 100644 --- a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi @@ -2,107 +2,96 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -from collections import abc as _abc -from feast.serving import ServingService_pb2 as _ServingService_pb2 # type: ignore[attr-defined] -from feast.types import EntityKey_pb2 as _EntityKey_pb2 # type: ignore[attr-defined] -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.serving.ServingService_pb2 +import feast.types.EntityKey_pb2 +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class ConnectorFeature(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ConnectorFeature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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: ... + 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: ... def __init__( self, *, - reference: _ServingService_pb2.FeatureReferenceV2 | None = ..., - timestamp: _timestamp_pb2.Timestamp | None = ..., - value: _Value_pb2.Value | None = ..., + reference: feast.serving.ServingService_pb2.FeatureReferenceV2 | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + value: feast.types.Value_pb2.Value | None = ..., ) -> 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: ... + 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: ... -Global___ConnectorFeature: _TypeAlias = ConnectorFeature # noqa: Y015 +global___ConnectorFeature = ConnectorFeature -@_typing.final -class ConnectorFeatureList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ConnectorFeatureList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - FEATURELIST_FIELD_NUMBER: _builtins.int - @_builtins.property - def featureList(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeature]: ... + FEATURELIST_FIELD_NUMBER: builtins.int + @property + def featureList(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeature]: ... def __init__( self, *, - featureList: _abc.Iterable[Global___ConnectorFeature] | None = ..., + featureList: collections.abc.Iterable[global___ConnectorFeature] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["featureList", b"featureList"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["featureList", b"featureList"]) -> None: ... -Global___ConnectorFeatureList: _TypeAlias = ConnectorFeatureList # noqa: Y015 +global___ConnectorFeatureList = ConnectorFeatureList -@_typing.final -class OnlineReadRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class OnlineReadRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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]: ... + 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]: ... def __init__( self, *, - entityKeys: _abc.Iterable[_EntityKey_pb2.EntityKey] | None = ..., - view: _builtins.str = ..., - features: _abc.Iterable[_builtins.str] | None = ..., + entityKeys: collections.abc.Iterable[feast.types.EntityKey_pb2.EntityKey] | None = ..., + view: builtins.str = ..., + features: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"]) -> None: ... -Global___OnlineReadRequest: _TypeAlias = OnlineReadRequest # noqa: Y015 +global___OnlineReadRequest = OnlineReadRequest -@_typing.final -class OnlineReadResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class OnlineReadResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESULTS_FIELD_NUMBER: _builtins.int - @_builtins.property - def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeatureList]: ... + RESULTS_FIELD_NUMBER: builtins.int + @property + def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeatureList]: ... def __init__( self, *, - results: _abc.Iterable[Global___ConnectorFeatureList] | None = ..., + results: collections.abc.Iterable[global___ConnectorFeatureList] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["results", b"results"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ... -Global___OnlineReadResponse: _TypeAlias = OnlineReadResponse # noqa: Y015 +global___OnlineReadResponse = OnlineReadResponse diff --git a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi index f63321d5d36..a83cd87a16e 100644 --- a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi @@ -2,182 +2,162 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class PushRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class PushRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class FeaturesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class FeaturesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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: ... def __init__( self, *, - key: _builtins.str = ..., - value: _Value_pb2.Value | None = ..., + key: builtins.str = ..., + value: feast.types.Value_pb2.Value | None = ..., ) -> 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: ... - - 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 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]: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___PushRequest: _TypeAlias = PushRequest # noqa: Y015 +global___PushRequest = PushRequest -@_typing.final -class PushResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class PushResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... -Global___PushResponse: _TypeAlias = PushResponse # noqa: Y015 +global___PushResponse = PushResponse -@_typing.final -class WriteToOnlineStoreRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class WriteToOnlineStoreRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class FeaturesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class FeaturesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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: ... def __init__( self, *, - key: _builtins.str = ..., - value: _Value_pb2.Value | None = ..., + key: builtins.str = ..., + value: feast.types.Value_pb2.Value | None = ..., ) -> 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: ... - - 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 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]: ... def __init__( self, *, - 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 = ..., + 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 = ..., ) -> 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: ... + 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: ... -Global___WriteToOnlineStoreRequest: _TypeAlias = WriteToOnlineStoreRequest # noqa: Y015 +global___WriteToOnlineStoreRequest = WriteToOnlineStoreRequest -@_typing.final -class WriteToOnlineStoreResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class WriteToOnlineStoreResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... -Global___WriteToOnlineStoreResponse: _TypeAlias = WriteToOnlineStoreResponse # noqa: Y015 +global___WriteToOnlineStoreResponse = WriteToOnlineStoreResponse diff --git a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi index 5aca6dc73ab..1804ce0428e 100644 --- a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi @@ -16,31 +16,30 @@ 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. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import 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 import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _FieldStatus: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _FieldStatusEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _FieldStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INVALID: _FieldStatus.ValueType # 0 """Status is unset for this field.""" PRESENT: _FieldStatus.ValueType # 1 @@ -78,345 +77,300 @@ OUTSIDE_MAX_AGE: FieldStatus.ValueType # 4 """Values could be found for entity key, but field values are outside the maximum allowable range. """ -Global___FieldStatus: _TypeAlias = FieldStatus # noqa: Y015 +global___FieldStatus = FieldStatus -@_typing.final -class GetFeastServingInfoRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetFeastServingInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... -Global___GetFeastServingInfoRequest: _TypeAlias = GetFeastServingInfoRequest # noqa: Y015 +global___GetFeastServingInfoRequest = GetFeastServingInfoRequest -@_typing.final -class GetFeastServingInfoResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetFeastServingInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["version", b"version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["version", b"version"]) -> None: ... -Global___GetFeastServingInfoResponse: _TypeAlias = GetFeastServingInfoResponse # noqa: Y015 +global___GetFeastServingInfoResponse = GetFeastServingInfoResponse -@_typing.final -class FeatureReferenceV2(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureReferenceV2(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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: ... + def ClearField(self, field_name: typing_extensions.Literal["feature_name", b"feature_name", "feature_view_name", b"feature_view_name"]) -> None: ... -Global___FeatureReferenceV2: _TypeAlias = FeatureReferenceV2 # noqa: Y015 +global___FeatureReferenceV2 = FeatureReferenceV2 -@_typing.final -class GetOnlineFeaturesRequestV2(_message.Message): +class GetOnlineFeaturesRequestV2(google.protobuf.message.Message): """ToDo (oleksii): remove this message (since it's not used) and move EntityRow on package level""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class EntityRow(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class EntityRow(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class FieldsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class FieldsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - @_builtins.property - def value(self) -> _Value_pb2.Value: ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> feast.types.Value_pb2.Value: ... def __init__( self, *, - key: _builtins.str = ..., - value: _Value_pb2.Value | None = ..., + key: builtins.str = ..., + value: feast.types.Value_pb2.Value | None = ..., ) -> 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: ... - - TIMESTAMP_FIELD_NUMBER: _builtins.int - FIELDS_FIELD_NUMBER: _builtins.int - @_builtins.property - def timestamp(self) -> _timestamp_pb2.Timestamp: + 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: """Request timestamp of this row. This value will be used, together with maxAge, to determine feature staleness. """ - - @_builtins.property - def fields(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: + @property + def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.Value]: """Map containing mapping of entity name to entity value.""" - def __init__( self, *, - timestamp: _timestamp_pb2.Timestamp | None = ..., - fields: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + fields: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.Value] | None = ..., ) -> None: ... - _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]: + 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]: """List of features that are being retrieved""" - - @_builtins.property - def entity_rows(self) -> _containers.RepeatedCompositeFieldContainer[Global___GetOnlineFeaturesRequestV2.EntityRow]: + @property + def entity_rows(self) -> google.protobuf.internal.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: _abc.Iterable[Global___FeatureReferenceV2] | None = ..., - entity_rows: _abc.Iterable[Global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., - project: _builtins.str = ..., + features: collections.abc.Iterable[global___FeatureReferenceV2] | None = ..., + entity_rows: collections.abc.Iterable[global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., + project: builtins.str = ..., ) -> 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: ... + def ClearField(self, field_name: typing_extensions.Literal["entity_rows", b"entity_rows", "features", b"features", "project", b"project"]) -> None: ... -Global___GetOnlineFeaturesRequestV2: _TypeAlias = GetOnlineFeaturesRequestV2 # noqa: Y015 +global___GetOnlineFeaturesRequestV2 = GetOnlineFeaturesRequestV2 -@_typing.final -class FeatureList(_message.Message): +class FeatureList(google.protobuf.message.Message): """In JSON "val" field can be omitted""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.str] | None = ..., + val: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___FeatureList: _TypeAlias = FeatureList # noqa: Y015 +global___FeatureList = FeatureList -@_typing.final -class GetOnlineFeaturesRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetOnlineFeaturesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class EntitiesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class EntitiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - @_builtins.property - def value(self) -> _Value_pb2.RepeatedValue: ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> feast.types.Value_pb2.RepeatedValue: ... def __init__( self, *, - key: _builtins.str = ..., - value: _Value_pb2.RepeatedValue | None = ..., + key: builtins.str = ..., + value: feast.types.Value_pb2.RepeatedValue | None = ..., ) -> 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: ... - - @_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 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: ... def __init__( self, *, - key: _builtins.str = ..., - value: _Value_pb2.RepeatedValue | None = ..., + key: builtins.str = ..., + value: feast.types.Value_pb2.RepeatedValue | None = ..., ) -> 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: ... - - 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]: + 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]: """The entity data is specified in a columnar format A map of entity name -> list of values """ - - @_builtins.property - def request_context(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.RepeatedValue]: + full_feature_names: builtins.bool + @property + def request_context(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.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: _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 = ..., + 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 = ..., ) -> None: ... - _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 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]: ... def __init__( self, *, - values: _abc.Iterable[_Value_pb2.Value] | None = ..., - statuses: _abc.Iterable[Global___FieldStatus.ValueType] | None = ..., - event_timestamps: _abc.Iterable[_timestamp_pb2.Timestamp] | None = ..., + 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 = ..., ) -> None: ... - _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]: + 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]: """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: _abc.Iterable[Global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., - status: _builtins.bool = ..., + metadata: global___GetOnlineFeaturesResponseMetadata | None = ..., + results: collections.abc.Iterable[global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., + status: builtins.bool = ..., ) -> 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: ... + 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: ... -Global___GetOnlineFeaturesResponse: _TypeAlias = GetOnlineFeaturesResponse # noqa: Y015 +global___GetOnlineFeaturesResponse = GetOnlineFeaturesResponse -@_typing.final -class FeatureViewMetadata(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FeatureViewMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "version", b"version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "version", b"version"]) -> None: ... -Global___FeatureViewMetadata: _TypeAlias = FeatureViewMetadata # noqa: Y015 +global___FeatureViewMetadata = FeatureViewMetadata -@_typing.final -class GetOnlineFeaturesResponseMetadata(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetOnlineFeaturesResponseMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - FEATURE_NAMES_FIELD_NUMBER: _builtins.int - FEATURE_VIEW_METADATA_FIELD_NUMBER: _builtins.int - @_builtins.property - def feature_names(self) -> Global___FeatureList: + FEATURE_NAMES_FIELD_NUMBER: builtins.int + FEATURE_VIEW_METADATA_FIELD_NUMBER: builtins.int + @property + def feature_names(self) -> global___FeatureList: """Clean feature names without @v2 syntax""" - - @_builtins.property - def feature_view_metadata(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewMetadata]: + @property + def feature_view_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewMetadata]: """Only populated when requested""" - def __init__( self, *, - feature_names: Global___FeatureList | None = ..., - feature_view_metadata: _abc.Iterable[Global___FeatureViewMetadata] | None = ..., + feature_names: global___FeatureList | None = ..., + feature_view_metadata: collections.abc.Iterable[global___FeatureViewMetadata] | None = ..., ) -> 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: ... + 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: ... -Global___GetOnlineFeaturesResponseMetadata: _TypeAlias = GetOnlineFeaturesResponseMetadata # noqa: Y015 +global___GetOnlineFeaturesResponseMetadata = GetOnlineFeaturesResponseMetadata diff --git a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi index f21ebfd05f8..3e0752b7bdd 100644 --- a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi @@ -16,27 +16,26 @@ 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. """ - -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 builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _TransformationServiceType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _TransformationServiceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _TransformationServiceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TRANSFORMATION_SERVICE_TYPE_INVALID: _TransformationServiceType.ValueType # 0 TRANSFORMATION_SERVICE_TYPE_PYTHON: _TransformationServiceType.ValueType # 1 TRANSFORMATION_SERVICE_TYPE_CUSTOM: _TransformationServiceType.ValueType # 100 @@ -46,106 +45,92 @@ 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: _TypeAlias = TransformationServiceType # noqa: Y015 +global___TransformationServiceType = TransformationServiceType -@_typing.final -class ValueType(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ValueType(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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: ... + 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: ... -Global___ValueType: _TypeAlias = ValueType # noqa: Y015 +global___ValueType = ValueType -@_typing.final -class GetTransformationServiceInfoRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetTransformationServiceInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... -Global___GetTransformationServiceInfoRequest: _TypeAlias = GetTransformationServiceInfoRequest # noqa: Y015 +global___GetTransformationServiceInfoRequest = GetTransformationServiceInfoRequest -@_typing.final -class GetTransformationServiceInfoResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class GetTransformationServiceInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _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 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: ... 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: ... - _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: ... + 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: ... -Global___TransformFeaturesRequest: _TypeAlias = TransformFeaturesRequest # noqa: Y015 +global___TransformFeaturesRequest = TransformFeaturesRequest -@_typing.final -class TransformFeaturesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class TransformFeaturesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSFORMATION_OUTPUT_FIELD_NUMBER: _builtins.int - @_builtins.property - def transformation_output(self) -> Global___ValueType: ... + TRANSFORMATION_OUTPUT_FIELD_NUMBER: builtins.int + @property + def transformation_output(self) -> global___ValueType: ... def __init__( self, *, - transformation_output: Global___ValueType | None = ..., + transformation_output: global___ValueType | None = ..., ) -> 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: ... + 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: ... -Global___TransformFeaturesResponse: _TypeAlias = TransformFeaturesResponse # noqa: Y015 +global___TransformFeaturesResponse = TransformFeaturesResponse diff --git a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi index 4ff2f7c6d14..74cc2b07f0a 100644 --- a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi +++ b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi @@ -16,43 +16,39 @@ 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. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - 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]: ... + 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]: ... def __init__( self, *, - project: _builtins.str = ..., - entity_names: _abc.Iterable[_builtins.str] | None = ..., - entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., + project: builtins.str = ..., + entity_names: collections.abc.Iterable[builtins.str] | None = ..., + entity_values: collections.abc.Iterable[feast.types.Value_pb2.Value] | None = ..., ) -> 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: ... + def ClearField(self, field_name: typing_extensions.Literal["entity_names", b"entity_names", "entity_values", b"entity_values", "project", b"project"]) -> None: ... -Global___RedisKeyV2: _TypeAlias = RedisKeyV2 # noqa: Y015 +global___RedisKeyV2 = RedisKeyV2 diff --git a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi index b3c1c18549b..fe65e0c1b32 100644 --- a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi @@ -16,40 +16,36 @@ 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. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class EntityKey(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class EntityKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - 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]: ... + 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]: ... def __init__( self, *, - join_keys: _abc.Iterable[_builtins.str] | None = ..., - entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., + join_keys: collections.abc.Iterable[builtins.str] | None = ..., + entity_values: collections.abc.Iterable[feast.types.Value_pb2.Value] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"]) -> None: ... -Global___EntityKey: _TypeAlias = EntityKey # noqa: Y015 +global___EntityKey = EntityKey diff --git a/sdk/python/feast/protos/feast/types/Field_pb2.pyi b/sdk/python/feast/protos/feast/types/Field_pb2.pyi index 0a98517bec2..28a21942378 100644 --- a/sdk/python/feast/protos/feast/types/Field_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/Field_pb2.pyi @@ -16,65 +16,58 @@ 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. """ - -from collections import abc as _abc -from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] -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 builtins +import collections.abc +import feast.types.Value_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message import sys -import typing as _typing -if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias +if sys.version_info >= (3, 8): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class Field(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Field(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class TagsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class TagsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> 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: _Value_pb2.ValueType.Enum.ValueType - description: _builtins.str - """Description of the field.""" - @_builtins.property - def tags(self) -> _containers.ScalarMap[_builtins.str, _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: 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 + """Description of the field.""" def __init__( self, *, - name: _builtins.str = ..., - value: _Value_pb2.ValueType.Enum.ValueType = ..., - tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - description: _builtins.str = ..., + name: builtins.str = ..., + value: feast.types.Value_pb2.ValueType.Enum.ValueType = ..., + tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + description: builtins.str = ..., ) -> 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: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "tags", b"tags", "value", b"value"]) -> None: ... -Global___Field: _TypeAlias = Field # noqa: Y015 +global___Field = Field diff --git a/sdk/python/feast/protos/feast/types/Value_pb2.pyi b/sdk/python/feast/protos/feast/types/Value_pb2.pyi index 162f8829bc1..4c24284e1e4 100644 --- a/sdk/python/feast/protos/feast/types/Value_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/Value_pb2.pyi @@ -16,46 +16,44 @@ 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. """ - -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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing if sys.version_info >= (3, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _Null: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _NullEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_Null.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _NullEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Null.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NULL: _Null.ValueType # 0 class Null(_Null, metaclass=_NullEnumTypeWrapper): ... NULL: Null.ValueType # 0 -Global___Null: _TypeAlias = Null # noqa: Y015 +global___Null = Null -@_typing.final -class ValueType(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class ValueType(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _Enum: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _EnumEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ValueType._Enum.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ValueType._Enum.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INVALID: ValueType._Enum.ValueType # 0 BYTES: ValueType._Enum.ValueType # 1 STRING: ValueType._Enum.ValueType # 2 @@ -151,588 +149,536 @@ class ValueType(_message.Message): self, ) -> None: ... -Global___ValueType: _TypeAlias = ValueType # noqa: Y015 - -@_typing.final -class Value(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - BYTES_VAL_FIELD_NUMBER: _builtins.int - STRING_VAL_FIELD_NUMBER: _builtins.int - INT32_VAL_FIELD_NUMBER: _builtins.int - INT64_VAL_FIELD_NUMBER: _builtins.int - DOUBLE_VAL_FIELD_NUMBER: _builtins.int - FLOAT_VAL_FIELD_NUMBER: _builtins.int - BOOL_VAL_FIELD_NUMBER: _builtins.int - UNIX_TIMESTAMP_VAL_FIELD_NUMBER: _builtins.int - BYTES_LIST_VAL_FIELD_NUMBER: _builtins.int - STRING_LIST_VAL_FIELD_NUMBER: _builtins.int - INT32_LIST_VAL_FIELD_NUMBER: _builtins.int - INT64_LIST_VAL_FIELD_NUMBER: _builtins.int - DOUBLE_LIST_VAL_FIELD_NUMBER: _builtins.int - FLOAT_LIST_VAL_FIELD_NUMBER: _builtins.int - BOOL_LIST_VAL_FIELD_NUMBER: _builtins.int - UNIX_TIMESTAMP_LIST_VAL_FIELD_NUMBER: _builtins.int - NULL_VAL_FIELD_NUMBER: _builtins.int - MAP_VAL_FIELD_NUMBER: _builtins.int - MAP_LIST_VAL_FIELD_NUMBER: _builtins.int - BYTES_SET_VAL_FIELD_NUMBER: _builtins.int - STRING_SET_VAL_FIELD_NUMBER: _builtins.int - INT32_SET_VAL_FIELD_NUMBER: _builtins.int - INT64_SET_VAL_FIELD_NUMBER: _builtins.int - DOUBLE_SET_VAL_FIELD_NUMBER: _builtins.int - FLOAT_SET_VAL_FIELD_NUMBER: _builtins.int - BOOL_SET_VAL_FIELD_NUMBER: _builtins.int - UNIX_TIMESTAMP_SET_VAL_FIELD_NUMBER: _builtins.int - JSON_VAL_FIELD_NUMBER: _builtins.int - JSON_LIST_VAL_FIELD_NUMBER: _builtins.int - STRUCT_VAL_FIELD_NUMBER: _builtins.int - STRUCT_LIST_VAL_FIELD_NUMBER: _builtins.int - UUID_VAL_FIELD_NUMBER: _builtins.int - TIME_UUID_VAL_FIELD_NUMBER: _builtins.int - UUID_LIST_VAL_FIELD_NUMBER: _builtins.int - TIME_UUID_LIST_VAL_FIELD_NUMBER: _builtins.int - UUID_SET_VAL_FIELD_NUMBER: _builtins.int - TIME_UUID_SET_VAL_FIELD_NUMBER: _builtins.int - LIST_VAL_FIELD_NUMBER: _builtins.int - SET_VAL_FIELD_NUMBER: _builtins.int - DECIMAL_VAL_FIELD_NUMBER: _builtins.int - DECIMAL_LIST_VAL_FIELD_NUMBER: _builtins.int - DECIMAL_SET_VAL_FIELD_NUMBER: _builtins.int - SCALAR_MAP_VAL_FIELD_NUMBER: _builtins.int - bytes_val: _builtins.bytes - string_val: _builtins.str - int32_val: _builtins.int - int64_val: _builtins.int - double_val: _builtins.float - float_val: _builtins.float - bool_val: _builtins.bool - unix_timestamp_val: _builtins.int - null_val: Global___Null.ValueType - json_val: _builtins.str - uuid_val: _builtins.str - time_uuid_val: _builtins.str - decimal_val: _builtins.str - @_builtins.property - def bytes_list_val(self) -> Global___BytesList: ... - @_builtins.property - def string_list_val(self) -> Global___StringList: ... - @_builtins.property - def int32_list_val(self) -> Global___Int32List: ... - @_builtins.property - def int64_list_val(self) -> Global___Int64List: ... - @_builtins.property - def double_list_val(self) -> Global___DoubleList: ... - @_builtins.property - def float_list_val(self) -> Global___FloatList: ... - @_builtins.property - def bool_list_val(self) -> Global___BoolList: ... - @_builtins.property - def unix_timestamp_list_val(self) -> Global___Int64List: ... - @_builtins.property - def map_val(self) -> Global___Map: ... - @_builtins.property - def map_list_val(self) -> Global___MapList: ... - @_builtins.property - def bytes_set_val(self) -> Global___BytesSet: ... - @_builtins.property - def string_set_val(self) -> Global___StringSet: ... - @_builtins.property - def int32_set_val(self) -> Global___Int32Set: ... - @_builtins.property - def int64_set_val(self) -> Global___Int64Set: ... - @_builtins.property - def double_set_val(self) -> Global___DoubleSet: ... - @_builtins.property - def float_set_val(self) -> Global___FloatSet: ... - @_builtins.property - def bool_set_val(self) -> Global___BoolSet: ... - @_builtins.property - def unix_timestamp_set_val(self) -> Global___Int64Set: ... - @_builtins.property - def json_list_val(self) -> Global___StringList: ... - @_builtins.property - def struct_val(self) -> Global___Map: ... - @_builtins.property - def struct_list_val(self) -> Global___MapList: ... - @_builtins.property - def uuid_list_val(self) -> Global___StringList: ... - @_builtins.property - def time_uuid_list_val(self) -> Global___StringList: ... - @_builtins.property - def uuid_set_val(self) -> Global___StringSet: ... - @_builtins.property - def time_uuid_set_val(self) -> Global___StringSet: ... - @_builtins.property - def list_val(self) -> Global___RepeatedValue: ... - @_builtins.property - def set_val(self) -> Global___RepeatedValue: ... - @_builtins.property - def decimal_list_val(self) -> Global___StringList: ... - @_builtins.property - def decimal_set_val(self) -> Global___StringSet: ... - @_builtins.property - def scalar_map_val(self) -> Global___ScalarMap: ... +global___ValueType = ValueType + +class Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BYTES_VAL_FIELD_NUMBER: builtins.int + STRING_VAL_FIELD_NUMBER: builtins.int + INT32_VAL_FIELD_NUMBER: builtins.int + INT64_VAL_FIELD_NUMBER: builtins.int + DOUBLE_VAL_FIELD_NUMBER: builtins.int + FLOAT_VAL_FIELD_NUMBER: builtins.int + BOOL_VAL_FIELD_NUMBER: builtins.int + UNIX_TIMESTAMP_VAL_FIELD_NUMBER: builtins.int + BYTES_LIST_VAL_FIELD_NUMBER: builtins.int + STRING_LIST_VAL_FIELD_NUMBER: builtins.int + INT32_LIST_VAL_FIELD_NUMBER: builtins.int + INT64_LIST_VAL_FIELD_NUMBER: builtins.int + DOUBLE_LIST_VAL_FIELD_NUMBER: builtins.int + FLOAT_LIST_VAL_FIELD_NUMBER: builtins.int + BOOL_LIST_VAL_FIELD_NUMBER: builtins.int + UNIX_TIMESTAMP_LIST_VAL_FIELD_NUMBER: builtins.int + NULL_VAL_FIELD_NUMBER: builtins.int + MAP_VAL_FIELD_NUMBER: builtins.int + MAP_LIST_VAL_FIELD_NUMBER: builtins.int + BYTES_SET_VAL_FIELD_NUMBER: builtins.int + STRING_SET_VAL_FIELD_NUMBER: builtins.int + INT32_SET_VAL_FIELD_NUMBER: builtins.int + INT64_SET_VAL_FIELD_NUMBER: builtins.int + DOUBLE_SET_VAL_FIELD_NUMBER: builtins.int + FLOAT_SET_VAL_FIELD_NUMBER: builtins.int + BOOL_SET_VAL_FIELD_NUMBER: builtins.int + UNIX_TIMESTAMP_SET_VAL_FIELD_NUMBER: builtins.int + JSON_VAL_FIELD_NUMBER: builtins.int + JSON_LIST_VAL_FIELD_NUMBER: builtins.int + STRUCT_VAL_FIELD_NUMBER: builtins.int + STRUCT_LIST_VAL_FIELD_NUMBER: builtins.int + UUID_VAL_FIELD_NUMBER: builtins.int + TIME_UUID_VAL_FIELD_NUMBER: builtins.int + UUID_LIST_VAL_FIELD_NUMBER: builtins.int + TIME_UUID_LIST_VAL_FIELD_NUMBER: builtins.int + UUID_SET_VAL_FIELD_NUMBER: builtins.int + TIME_UUID_SET_VAL_FIELD_NUMBER: builtins.int + LIST_VAL_FIELD_NUMBER: builtins.int + SET_VAL_FIELD_NUMBER: builtins.int + DECIMAL_VAL_FIELD_NUMBER: builtins.int + DECIMAL_LIST_VAL_FIELD_NUMBER: builtins.int + DECIMAL_SET_VAL_FIELD_NUMBER: builtins.int + SCALAR_MAP_VAL_FIELD_NUMBER: builtins.int + bytes_val: builtins.bytes + string_val: builtins.str + int32_val: builtins.int + int64_val: builtins.int + double_val: builtins.float + float_val: builtins.float + bool_val: builtins.bool + unix_timestamp_val: builtins.int + @property + def bytes_list_val(self) -> global___BytesList: ... + @property + def string_list_val(self) -> global___StringList: ... + @property + def int32_list_val(self) -> global___Int32List: ... + @property + def int64_list_val(self) -> global___Int64List: ... + @property + def double_list_val(self) -> global___DoubleList: ... + @property + def float_list_val(self) -> global___FloatList: ... + @property + def bool_list_val(self) -> global___BoolList: ... + @property + def unix_timestamp_list_val(self) -> global___Int64List: ... + null_val: global___Null.ValueType + @property + def map_val(self) -> global___Map: ... + @property + def map_list_val(self) -> global___MapList: ... + @property + def bytes_set_val(self) -> global___BytesSet: ... + @property + def string_set_val(self) -> global___StringSet: ... + @property + def int32_set_val(self) -> global___Int32Set: ... + @property + def int64_set_val(self) -> global___Int64Set: ... + @property + def double_set_val(self) -> global___DoubleSet: ... + @property + def float_set_val(self) -> global___FloatSet: ... + @property + def bool_set_val(self) -> global___BoolSet: ... + @property + def unix_timestamp_set_val(self) -> global___Int64Set: ... + json_val: builtins.str + @property + def json_list_val(self) -> global___StringList: ... + @property + def struct_val(self) -> global___Map: ... + @property + def struct_list_val(self) -> global___MapList: ... + uuid_val: builtins.str + time_uuid_val: builtins.str + @property + def uuid_list_val(self) -> global___StringList: ... + @property + def time_uuid_list_val(self) -> global___StringList: ... + @property + def uuid_set_val(self) -> global___StringSet: ... + @property + def time_uuid_set_val(self) -> global___StringSet: ... + @property + def list_val(self) -> global___RepeatedValue: ... + @property + def set_val(self) -> global___RepeatedValue: ... + decimal_val: builtins.str + @property + def decimal_list_val(self) -> global___StringList: ... + @property + def decimal_set_val(self) -> global___StringSet: ... + @property + def scalar_map_val(self) -> global___ScalarMap: ... def __init__( self, *, - bytes_val: _builtins.bytes = ..., - string_val: _builtins.str = ..., - int32_val: _builtins.int = ..., - int64_val: _builtins.int = ..., - double_val: _builtins.float = ..., - float_val: _builtins.float = ..., - bool_val: _builtins.bool = ..., - unix_timestamp_val: _builtins.int = ..., - bytes_list_val: Global___BytesList | None = ..., - string_list_val: Global___StringList | None = ..., - int32_list_val: Global___Int32List | None = ..., - int64_list_val: Global___Int64List | None = ..., - double_list_val: Global___DoubleList | None = ..., - float_list_val: Global___FloatList | None = ..., - bool_list_val: Global___BoolList | None = ..., - unix_timestamp_list_val: Global___Int64List | None = ..., - null_val: Global___Null.ValueType = ..., - map_val: Global___Map | None = ..., - map_list_val: Global___MapList | None = ..., - bytes_set_val: Global___BytesSet | None = ..., - string_set_val: Global___StringSet | None = ..., - int32_set_val: Global___Int32Set | None = ..., - int64_set_val: Global___Int64Set | None = ..., - double_set_val: Global___DoubleSet | None = ..., - float_set_val: Global___FloatSet | None = ..., - bool_set_val: Global___BoolSet | None = ..., - unix_timestamp_set_val: Global___Int64Set | None = ..., - json_val: _builtins.str = ..., - json_list_val: Global___StringList | None = ..., - struct_val: Global___Map | None = ..., - struct_list_val: Global___MapList | None = ..., - uuid_val: _builtins.str = ..., - time_uuid_val: _builtins.str = ..., - uuid_list_val: Global___StringList | None = ..., - time_uuid_list_val: Global___StringList | None = ..., - uuid_set_val: Global___StringSet | None = ..., - time_uuid_set_val: Global___StringSet | None = ..., - list_val: Global___RepeatedValue | None = ..., - set_val: Global___RepeatedValue | None = ..., - decimal_val: _builtins.str = ..., - decimal_list_val: Global___StringList | None = ..., - decimal_set_val: Global___StringSet | None = ..., - scalar_map_val: Global___ScalarMap | None = ..., + bytes_val: builtins.bytes = ..., + string_val: builtins.str = ..., + int32_val: builtins.int = ..., + int64_val: builtins.int = ..., + double_val: builtins.float = ..., + float_val: builtins.float = ..., + bool_val: builtins.bool = ..., + unix_timestamp_val: builtins.int = ..., + bytes_list_val: global___BytesList | None = ..., + string_list_val: global___StringList | None = ..., + int32_list_val: global___Int32List | None = ..., + int64_list_val: global___Int64List | None = ..., + double_list_val: global___DoubleList | None = ..., + float_list_val: global___FloatList | None = ..., + bool_list_val: global___BoolList | None = ..., + unix_timestamp_list_val: global___Int64List | None = ..., + null_val: global___Null.ValueType = ..., + map_val: global___Map | None = ..., + map_list_val: global___MapList | None = ..., + bytes_set_val: global___BytesSet | None = ..., + string_set_val: global___StringSet | None = ..., + int32_set_val: global___Int32Set | None = ..., + int64_set_val: global___Int64Set | None = ..., + double_set_val: global___DoubleSet | None = ..., + float_set_val: global___FloatSet | None = ..., + bool_set_val: global___BoolSet | None = ..., + unix_timestamp_set_val: global___Int64Set | None = ..., + json_val: builtins.str = ..., + json_list_val: global___StringList | None = ..., + struct_val: global___Map | None = ..., + struct_list_val: global___MapList | None = ..., + uuid_val: builtins.str = ..., + time_uuid_val: builtins.str = ..., + uuid_list_val: global___StringList | None = ..., + time_uuid_list_val: global___StringList | None = ..., + uuid_set_val: global___StringSet | None = ..., + time_uuid_set_val: global___StringSet | None = ..., + list_val: global___RepeatedValue | None = ..., + set_val: global___RepeatedValue | None = ..., + decimal_val: builtins.str = ..., + decimal_list_val: global___StringList | None = ..., + decimal_set_val: global___StringSet | None = ..., + scalar_map_val: global___ScalarMap | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_val: _TypeAlias = _typing.Literal["bytes_val", "string_val", "int32_val", "int64_val", "double_val", "float_val", "bool_val", "unix_timestamp_val", "bytes_list_val", "string_list_val", "int32_list_val", "int64_list_val", "double_list_val", "float_list_val", "bool_list_val", "unix_timestamp_list_val", "null_val", "map_val", "map_list_val", "bytes_set_val", "string_set_val", "int32_set_val", "int64_set_val", "double_set_val", "float_set_val", "bool_set_val", "unix_timestamp_set_val", "json_val", "json_list_val", "struct_val", "struct_list_val", "uuid_val", "time_uuid_val", "uuid_list_val", "time_uuid_list_val", "uuid_set_val", "time_uuid_set_val", "list_val", "set_val", "decimal_val", "decimal_list_val", "decimal_set_val", "scalar_map_val"] # noqa: Y015 - _WhichOneofArgType_val: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_val) -> _WhichOneofReturnType_val | None: ... - -Global___Value: _TypeAlias = Value # noqa: Y015 - -@_typing.final -class BytesList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bytes]: ... + def HasField(self, field_name: typing_extensions.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["val", b"val"]) -> typing_extensions.Literal["bytes_val", "string_val", "int32_val", "int64_val", "double_val", "float_val", "bool_val", "unix_timestamp_val", "bytes_list_val", "string_list_val", "int32_list_val", "int64_list_val", "double_list_val", "float_list_val", "bool_list_val", "unix_timestamp_list_val", "null_val", "map_val", "map_list_val", "bytes_set_val", "string_set_val", "int32_set_val", "int64_set_val", "double_set_val", "float_set_val", "bool_set_val", "unix_timestamp_set_val", "json_val", "json_list_val", "struct_val", "struct_list_val", "uuid_val", "time_uuid_val", "uuid_list_val", "time_uuid_list_val", "uuid_set_val", "time_uuid_set_val", "list_val", "set_val", "decimal_val", "decimal_list_val", "decimal_set_val", "scalar_map_val"] | None: ... + +global___Value = Value + +class BytesList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.bytes] | None = ..., + val: collections.abc.Iterable[builtins.bytes] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___BytesList: _TypeAlias = BytesList # noqa: Y015 +global___BytesList = BytesList -@_typing.final -class StringList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class StringList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.str] | None = ..., + val: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___StringList: _TypeAlias = StringList # noqa: Y015 +global___StringList = StringList -@_typing.final -class Int32List(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Int32List(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.int] | None = ..., + val: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___Int32List: _TypeAlias = Int32List # noqa: Y015 +global___Int32List = Int32List -@_typing.final -class Int64List(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Int64List(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.int] | None = ..., + val: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___Int64List: _TypeAlias = Int64List # noqa: Y015 +global___Int64List = Int64List -@_typing.final -class DoubleList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DoubleList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.float] | None = ..., + val: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___DoubleList: _TypeAlias = DoubleList # noqa: Y015 +global___DoubleList = DoubleList -@_typing.final -class FloatList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FloatList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.float] | None = ..., + val: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___FloatList: _TypeAlias = FloatList # noqa: Y015 +global___FloatList = FloatList -@_typing.final -class BoolList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class BoolList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bool]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.bool] | None = ..., + val: collections.abc.Iterable[builtins.bool] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___BoolList: _TypeAlias = BoolList # noqa: Y015 +global___BoolList = BoolList -@_typing.final -class BytesSet(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class BytesSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bytes]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.bytes] | None = ..., + val: collections.abc.Iterable[builtins.bytes] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___BytesSet: _TypeAlias = BytesSet # noqa: Y015 +global___BytesSet = BytesSet -@_typing.final -class StringSet(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class StringSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.str] | None = ..., + val: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___StringSet: _TypeAlias = StringSet # noqa: Y015 +global___StringSet = StringSet -@_typing.final -class Int32Set(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Int32Set(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.int] | None = ..., + val: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___Int32Set: _TypeAlias = Int32Set # noqa: Y015 +global___Int32Set = Int32Set -@_typing.final -class Int64Set(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Int64Set(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.int] | None = ..., + val: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___Int64Set: _TypeAlias = Int64Set # noqa: Y015 +global___Int64Set = Int64Set -@_typing.final -class DoubleSet(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class DoubleSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.float] | None = ..., + val: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___DoubleSet: _TypeAlias = DoubleSet # noqa: Y015 +global___DoubleSet = DoubleSet -@_typing.final -class FloatSet(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class FloatSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.float] | None = ..., + val: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___FloatSet: _TypeAlias = FloatSet # noqa: Y015 +global___FloatSet = FloatSet -@_typing.final -class BoolSet(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class BoolSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bool]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... def __init__( self, *, - val: _abc.Iterable[_builtins.bool] | None = ..., + val: collections.abc.Iterable[builtins.bool] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___BoolSet: _TypeAlias = BoolSet # noqa: Y015 +global___BoolSet = BoolSet -@_typing.final -class Map(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class Map(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class ValEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + class ValEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - @_builtins.property - def value(self) -> Global___Value: ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___Value: ... def __init__( self, *, - key: _builtins.str = ..., - value: Global___Value | None = ..., + key: builtins.str = ..., + value: global___Value | None = ..., ) -> 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: ... - - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.MessageMap[_builtins.str, Global___Value]: ... + 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: ... + + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Value]: ... def __init__( self, *, - val: _abc.Mapping[_builtins.str, Global___Value] | None = ..., + val: collections.abc.Mapping[builtins.str, global___Value] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___Map: _TypeAlias = Map # noqa: Y015 +global___Map = Map -@_typing.final -class MapList(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +class MapList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___Map]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Map]: ... def __init__( self, *, - val: _abc.Iterable[Global___Map] | None = ..., + val: collections.abc.Iterable[global___Map] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___MapList: _TypeAlias = MapList # noqa: Y015 +global___MapList = MapList -@_typing.final -class RepeatedValue(_message.Message): +class RepeatedValue(google.protobuf.message.Message): """This is to avoid an issue of being unable to specify `repeated value` in oneofs or maps In JSON "val" field can be omitted """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___Value]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]: ... def __init__( self, *, - val: _abc.Iterable[Global___Value] | None = ..., + val: collections.abc.Iterable[global___Value] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___RepeatedValue: _TypeAlias = RepeatedValue # noqa: Y015 +global___RepeatedValue = RepeatedValue -@_typing.final -class MapKey(_message.Message): +class MapKey(google.protobuf.message.Message): """Map key for maps with non-string keys. Excludes string (handled by Map) and all collection types (not valid as keys). """ - DESCRIPTOR: _descriptor.Descriptor - - INT32_KEY_FIELD_NUMBER: _builtins.int - INT64_KEY_FIELD_NUMBER: _builtins.int - FLOAT_KEY_FIELD_NUMBER: _builtins.int - DOUBLE_KEY_FIELD_NUMBER: _builtins.int - BOOL_KEY_FIELD_NUMBER: _builtins.int - UNIX_TIMESTAMP_KEY_FIELD_NUMBER: _builtins.int - BYTES_KEY_FIELD_NUMBER: _builtins.int - UUID_KEY_FIELD_NUMBER: _builtins.int - TIME_UUID_KEY_FIELD_NUMBER: _builtins.int - DECIMAL_KEY_FIELD_NUMBER: _builtins.int - int32_key: _builtins.int - int64_key: _builtins.int - float_key: _builtins.float - double_key: _builtins.float - bool_key: _builtins.bool - unix_timestamp_key: _builtins.int - bytes_key: _builtins.bytes - uuid_key: _builtins.str - time_uuid_key: _builtins.str - decimal_key: _builtins.str + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INT32_KEY_FIELD_NUMBER: builtins.int + INT64_KEY_FIELD_NUMBER: builtins.int + FLOAT_KEY_FIELD_NUMBER: builtins.int + DOUBLE_KEY_FIELD_NUMBER: builtins.int + BOOL_KEY_FIELD_NUMBER: builtins.int + UNIX_TIMESTAMP_KEY_FIELD_NUMBER: builtins.int + BYTES_KEY_FIELD_NUMBER: builtins.int + UUID_KEY_FIELD_NUMBER: builtins.int + TIME_UUID_KEY_FIELD_NUMBER: builtins.int + DECIMAL_KEY_FIELD_NUMBER: builtins.int + int32_key: builtins.int + int64_key: builtins.int + float_key: builtins.float + double_key: builtins.float + bool_key: builtins.bool + unix_timestamp_key: builtins.int + bytes_key: builtins.bytes + uuid_key: builtins.str + time_uuid_key: builtins.str + decimal_key: builtins.str def __init__( self, *, - int32_key: _builtins.int = ..., - int64_key: _builtins.int = ..., - float_key: _builtins.float = ..., - double_key: _builtins.float = ..., - bool_key: _builtins.bool = ..., - unix_timestamp_key: _builtins.int = ..., - bytes_key: _builtins.bytes = ..., - uuid_key: _builtins.str = ..., - time_uuid_key: _builtins.str = ..., - decimal_key: _builtins.str = ..., + int32_key: builtins.int = ..., + int64_key: builtins.int = ..., + float_key: builtins.float = ..., + double_key: builtins.float = ..., + bool_key: builtins.bool = ..., + unix_timestamp_key: builtins.int = ..., + bytes_key: builtins.bytes = ..., + uuid_key: builtins.str = ..., + time_uuid_key: builtins.str = ..., + decimal_key: builtins.str = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_key: _TypeAlias = _typing.Literal["int32_key", "int64_key", "float_key", "double_key", "bool_key", "unix_timestamp_key", "bytes_key", "uuid_key", "time_uuid_key", "decimal_key"] # noqa: Y015 - _WhichOneofArgType_key: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_key) -> _WhichOneofReturnType_key | None: ... - -Global___MapKey: _TypeAlias = MapKey # noqa: Y015 - -@_typing.final -class ScalarMapEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - @_builtins.property - def key(self) -> Global___MapKey: ... - @_builtins.property - def value(self) -> Global___Value: ... + def HasField(self, field_name: typing_extensions.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["key", b"key"]) -> typing_extensions.Literal["int32_key", "int64_key", "float_key", "double_key", "bool_key", "unix_timestamp_key", "bytes_key", "uuid_key", "time_uuid_key", "decimal_key"] | None: ... + +global___MapKey = MapKey + +class ScalarMapEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + @property + def key(self) -> global___MapKey: ... + @property + def value(self) -> global___Value: ... def __init__( self, *, - key: Global___MapKey | None = ..., - value: Global___Value | None = ..., + key: global___MapKey | None = ..., + value: global___Value | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "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: ... + def HasField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... -Global___ScalarMapEntry: _TypeAlias = ScalarMapEntry # noqa: Y015 +global___ScalarMapEntry = ScalarMapEntry -@_typing.final -class ScalarMap(_message.Message): +class ScalarMap(google.protobuf.message.Message): """Map with non-string keys. For string-keyed maps use Map.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VAL_FIELD_NUMBER: _builtins.int - @_builtins.property - def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___ScalarMapEntry]: ... + VAL_FIELD_NUMBER: builtins.int + @property + def val(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScalarMapEntry]: ... def __init__( self, *, - val: _abc.Iterable[Global___ScalarMapEntry] | None = ..., + val: collections.abc.Iterable[global___ScalarMapEntry] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... -Global___ScalarMap: _TypeAlias = ScalarMap # noqa: Y015 +global___ScalarMap = ScalarMap diff --git a/sdk/python/feast/stream_feature_view.py b/sdk/python/feast/stream_feature_view.py index 3d0f98edae3..fe1c532fa26 100644 --- a/sdk/python/feast/stream_feature_view.py +++ b/sdk/python/feast/stream_feature_view.py @@ -321,6 +321,7 @@ def to_proto(self): tiling_hop_size=tiling_hop_size_duration, enable_validation=self.enable_validation, version=self.version, + disabled=not self.enabled, ) return StreamFeatureViewProto(spec=spec, meta=meta) @@ -403,6 +404,13 @@ def from_proto(cls, sfv_proto, skip_udf: bool = False): else: stream_feature_view.current_version_number = None + stream_feature_view.enabled = not sfv_proto.spec.disabled + + # Restore lifecycle state from meta (SFV uses FeatureViewMeta which has state). + from feast.feature_view import FeatureViewState + + stream_feature_view.state = FeatureViewState.from_proto(sfv_proto.meta.state) + stream_feature_view.entities = list(sfv_proto.spec.entities) stream_feature_view.features = [ @@ -452,6 +460,8 @@ def __copy__(self): enable_validation=self.enable_validation, version=self.version, ) + fv.enabled = self.enabled + fv.state = self.state fv.entities = self.entities fv.features = copy.copy(self.features) fv.entity_columns = copy.copy(self.entity_columns) diff --git a/sdk/python/feast/utils.py b/sdk/python/feast/utils.py index 55ad6c6a0b8..b9b511de698 100644 --- a/sdk/python/feast/utils.py +++ b/sdk/python/feast/utils.py @@ -1246,6 +1246,26 @@ def _get_feature_views_to_use( else: fv = registry.get_any_feature_view(name, project, allow_cache) + if hasattr(fv, "enabled") and not fv.enabled: + raise ValueError( + f"Feature view '{name}' is disabled and cannot serve features. " + f"Enable it with `feast feature-views enable {name}` or set enabled=True." + ) + + # Enforce lifecycle state gate: only serve if state is AVAILABLE_ONLINE + # or STATE_UNSPECIFIED (backward compat for pre-state feature views). + if hasattr(fv, "state"): + from feast.feature_view import FeatureViewState + + if isinstance(fv.state, FeatureViewState) and fv.state not in ( + FeatureViewState.STATE_UNSPECIFIED, + FeatureViewState.AVAILABLE_ONLINE, + ): + raise ValueError( + f"Feature view '{name}' is in state '{fv.state.name}' " + f"and cannot serve features. Only AVAILABLE_ONLINE feature views can serve." + ) + if isinstance(fv, OnDemandFeatureView): od_fvs_to_use.append( fv.with_projection(copy.copy(projection)) if projection else fv diff --git a/sdk/python/tests/unit/test_feature_view_state.py b/sdk/python/tests/unit/test_feature_view_state.py new file mode 100644 index 00000000000..3af91b3b469 --- /dev/null +++ b/sdk/python/tests/unit/test_feature_view_state.py @@ -0,0 +1,433 @@ +import copy +from datetime import datetime, timedelta +from tempfile import mkstemp + +import pytest + +from feast.data_format import AvroFormat, ParquetFormat +from feast.data_source import KafkaSource +from feast.entity import Entity +from feast.feature_store import FeatureStore +from feast.feature_view import FeatureView, FeatureViewState +from feast.field import Field +from feast.infra.offline_stores.file_source import FileSource +from feast.infra.online_stores.sqlite import SqliteOnlineStoreConfig +from feast.on_demand_feature_view import OnDemandFeatureView +from feast.protos.feast.core.FeatureView_pb2 import FeatureView as FeatureViewProto +from feast.protos.feast.core.FeatureView_pb2 import ( + FeatureViewMeta as FeatureViewMetaProto, +) +from feast.protos.feast.core.FeatureView_pb2 import ( + FeatureViewSpec as FeatureViewSpecProto, +) +from feast.repo_config import RepoConfig +from feast.stream_feature_view import StreamFeatureView +from feast.types import Float32, Int64 + +# --------------------------------------------------------------------------- +# Helpers +# --------------------------------------------------------------------------- + + +def _kafka_source(): + return KafkaSource( + name="kafka", + timestamp_field="event_timestamp", + kafka_bootstrap_servers="localhost:9092", + message_format=AvroFormat(""), + topic="topic", + batch_source=_batch_source(), + ) + + +def _batch_source(): + return FileSource( + file_format=ParquetFormat(), + path="file://feast/*", + timestamp_field="ts_col", + created_timestamp_column="timestamp", + ) + + +def _simple_feature_view(name="test_fv", enabled=True): + return FeatureView( + name=name, + entities=[], + schema=[Field(name="f1", dtype=Float32)], + source=_batch_source(), + ttl=timedelta(days=1), + enabled=enabled, + ) + + +@pytest.fixture +def local_feature_store(): + _, registry_path = mkstemp() + _, online_store_path = mkstemp() + return FeatureStore( + config=RepoConfig( + registry=registry_path, + project="default", + provider="local", + online_store=SqliteOnlineStoreConfig(path=online_store_path), + entity_key_serialization_version=3, + ) + ) + + +# --------------------------------------------------------------------------- +# FeatureViewState enum +# --------------------------------------------------------------------------- + + +class TestFeatureViewState: + def test_state_values(self): + assert FeatureViewState.STATE_UNSPECIFIED == 0 + assert FeatureViewState.CREATED == 1 + assert FeatureViewState.GENERATED == 2 + assert FeatureViewState.MATERIALIZING == 3 + assert FeatureViewState.AVAILABLE_ONLINE == 4 + + def test_from_proto_valid(self): + assert FeatureViewState.from_proto(0) == FeatureViewState.STATE_UNSPECIFIED + assert FeatureViewState.from_proto(4) == FeatureViewState.AVAILABLE_ONLINE + + def test_from_proto_invalid_falls_back(self): + assert FeatureViewState.from_proto(999) == FeatureViewState.STATE_UNSPECIFIED + + def test_to_proto_round_trip(self): + for state in FeatureViewState: + assert FeatureViewState.from_proto(state.to_proto()) == state + + def test_valid_transitions(self): + """Verify that valid transitions are accepted.""" + assert FeatureViewState.STATE_UNSPECIFIED.can_transition_to( + FeatureViewState.CREATED + ) + assert FeatureViewState.CREATED.can_transition_to(FeatureViewState.GENERATED) + assert FeatureViewState.GENERATED.can_transition_to( + FeatureViewState.MATERIALIZING + ) + assert FeatureViewState.MATERIALIZING.can_transition_to( + FeatureViewState.AVAILABLE_ONLINE + ) + assert FeatureViewState.MATERIALIZING.can_transition_to( + FeatureViewState.GENERATED + ) + assert FeatureViewState.AVAILABLE_ONLINE.can_transition_to( + FeatureViewState.MATERIALIZING + ) + + def test_invalid_transitions(self): + """Verify that invalid transitions are rejected.""" + assert not FeatureViewState.STATE_UNSPECIFIED.can_transition_to( + FeatureViewState.AVAILABLE_ONLINE + ) + assert not FeatureViewState.CREATED.can_transition_to( + FeatureViewState.MATERIALIZING + ) + assert not FeatureViewState.CREATED.can_transition_to( + FeatureViewState.AVAILABLE_ONLINE + ) + assert not FeatureViewState.GENERATED.can_transition_to( + FeatureViewState.AVAILABLE_ONLINE + ) + assert not FeatureViewState.AVAILABLE_ONLINE.can_transition_to( + FeatureViewState.CREATED + ) + + +# --------------------------------------------------------------------------- +# FeatureView enabled / state defaults +# --------------------------------------------------------------------------- + + +class TestFeatureViewDefaults: + def test_default_enabled_is_true(self): + fv = _simple_feature_view() + assert fv.enabled is True + + def test_default_state_is_unspecified(self): + fv = _simple_feature_view() + assert fv.state == FeatureViewState.STATE_UNSPECIFIED + + def test_enabled_false(self): + fv = _simple_feature_view(enabled=False) + assert fv.enabled is False + + +# --------------------------------------------------------------------------- +# Proto serialization round-trips +# --------------------------------------------------------------------------- + + +class TestFeatureViewProtoRoundTrip: + def test_enabled_true_round_trip(self): + fv = _simple_feature_view(enabled=True) + proto = fv.to_proto() + assert proto.spec.disabled is False + restored = FeatureView.from_proto(proto) + assert restored.enabled is True + + def test_enabled_false_round_trip(self): + fv = _simple_feature_view(enabled=False) + proto = fv.to_proto() + assert proto.spec.disabled is True + restored = FeatureView.from_proto(proto) + assert restored.enabled is False + + def test_state_round_trip(self): + fv = _simple_feature_view() + fv.state = FeatureViewState.AVAILABLE_ONLINE + proto = fv.to_proto() + assert proto.meta.state == FeatureViewState.AVAILABLE_ONLINE.value + restored = FeatureView.from_proto(proto) + assert restored.state == FeatureViewState.AVAILABLE_ONLINE + + def test_state_unspecified_not_written_to_proto(self): + fv = _simple_feature_view() + assert fv.state == FeatureViewState.STATE_UNSPECIFIED + proto = fv.to_proto() + assert proto.meta.state == 0 + + def test_backward_compat_old_proto_without_disabled_field(self): + """Old protos without `disabled` field default to False -> enabled=True.""" + spec = FeatureViewSpecProto() + spec.name = "legacy_fv" + proto = FeatureViewProto(spec=spec, meta=FeatureViewMetaProto()) + fv = FeatureView.from_proto(proto) + assert fv.enabled is True + + def test_backward_compat_old_proto_without_state_field(self): + """Old protos without `state` field default to 0 -> STATE_UNSPECIFIED.""" + spec = FeatureViewSpecProto() + spec.name = "legacy_fv" + proto = FeatureViewProto(spec=spec, meta=FeatureViewMetaProto()) + fv = FeatureView.from_proto(proto) + assert fv.state == FeatureViewState.STATE_UNSPECIFIED + + def test_all_states_round_trip(self): + for state in FeatureViewState: + fv = _simple_feature_view() + fv.state = state + restored = FeatureView.from_proto(fv.to_proto()) + assert restored.state == state + + +# --------------------------------------------------------------------------- +# copy.copy preserves enabled/state +# --------------------------------------------------------------------------- + + +class TestCopyPreservesState: + def test_feature_view_copy(self): + fv = _simple_feature_view(enabled=False) + fv.state = FeatureViewState.GENERATED + copied = copy.copy(fv) + assert copied.enabled is False + assert copied.state == FeatureViewState.GENERATED + + def test_on_demand_feature_view_copy(self): + source_fv = _simple_feature_view() + odfv = OnDemandFeatureView( + name="test_odfv", + sources=[source_fv], + schema=[Field(name="out", dtype=Float32)], + mode="python", + udf=lambda features: {"out": [1.0]}, + enabled=False, + ) + odfv.state = FeatureViewState.GENERATED + copied = copy.copy(odfv) + assert copied.enabled is False + assert copied.state == FeatureViewState.GENERATED + + def test_stream_feature_view_copy(self): + sfv = StreamFeatureView( + name="test_sfv", + entities=[], + schema=[Field(name="f1", dtype=Float32)], + source=_kafka_source(), + ttl=timedelta(days=1), + ) + sfv.enabled = False + sfv.state = FeatureViewState.AVAILABLE_ONLINE + copied = copy.copy(sfv) + assert copied.enabled is False + assert copied.state == FeatureViewState.AVAILABLE_ONLINE + + +# --------------------------------------------------------------------------- +# OnDemandFeatureView enabled / state +# --------------------------------------------------------------------------- + + +class TestOnDemandFeatureViewState: + def test_default_enabled(self): + source_fv = _simple_feature_view() + odfv = OnDemandFeatureView( + name="test_odfv", + sources=[source_fv], + schema=[Field(name="out", dtype=Float32)], + mode="python", + udf=lambda features: {"out": [1.0]}, + ) + assert odfv.enabled is True + assert odfv.state == FeatureViewState.STATE_UNSPECIFIED + + def test_disabled(self): + source_fv = _simple_feature_view() + odfv = OnDemandFeatureView( + name="test_odfv", + sources=[source_fv], + schema=[Field(name="out", dtype=Float32)], + mode="python", + udf=lambda features: {"out": [1.0]}, + enabled=False, + ) + assert odfv.enabled is False + + def test_proto_disabled_field(self): + """Verify the proto disabled field is set correctly without full round-trip.""" + source_fv = _simple_feature_view() + odfv = OnDemandFeatureView( + name="test_odfv", + sources=[source_fv], + schema=[Field(name="out", dtype=Float32)], + mode="python", + udf=lambda features: {"out": [1.0]}, + enabled=False, + ) + odfv.state = FeatureViewState.AVAILABLE_ONLINE + proto = odfv.to_proto() + assert proto.spec.disabled is True + assert proto.meta.state == FeatureViewState.AVAILABLE_ONLINE.value + + +# --------------------------------------------------------------------------- +# StreamFeatureView enabled / state +# --------------------------------------------------------------------------- + + +class TestStreamFeatureViewState: + def test_proto_round_trip(self): + sfv = StreamFeatureView( + name="test_sfv", + entities=[], + schema=[Field(name="f1", dtype=Float32)], + source=_kafka_source(), + ttl=timedelta(days=1), + ) + sfv.enabled = False + sfv.state = FeatureViewState.MATERIALIZING + proto = sfv.to_proto() + assert proto.spec.disabled is True + restored = StreamFeatureView.from_proto(proto) + assert restored.enabled is False + assert restored.state == FeatureViewState.MATERIALIZING + + +# --------------------------------------------------------------------------- +# Registry apply preserves enabled/state +# --------------------------------------------------------------------------- + + +class TestRegistryEnabledState: + def test_apply_and_retrieve_enabled(self, local_feature_store): + store = local_feature_store + fv = _simple_feature_view(enabled=True) + store.apply([fv]) + retrieved = store.get_feature_view("test_fv") + assert retrieved.enabled is True + store.teardown() + + def test_apply_and_retrieve_disabled(self, local_feature_store): + store = local_feature_store + fv = _simple_feature_view(enabled=False) + store.apply([fv]) + retrieved = store.get_feature_view("test_fv") + assert retrieved.enabled is False + store.teardown() + + def test_toggle_enabled_via_registry(self, local_feature_store): + store = local_feature_store + fv = _simple_feature_view(enabled=True) + store.apply([fv]) + + # Disable it + fv.enabled = False + store.registry.apply_feature_view(fv, store.project) + retrieved = store.get_feature_view("test_fv") + assert retrieved.enabled is False + + # Re-enable it + fv.enabled = True + store.registry.apply_feature_view(fv, store.project) + retrieved = store.get_feature_view("test_fv") + assert retrieved.enabled is True + store.teardown() + + def test_state_persists_through_registry(self, local_feature_store): + store = local_feature_store + fv = _simple_feature_view() + fv.state = FeatureViewState.GENERATED + store.apply([fv]) + + # State should be updated via registry apply + fv.state = FeatureViewState.AVAILABLE_ONLINE + store.registry.apply_feature_view(fv, store.project) + retrieved = store.get_feature_view("test_fv") + assert retrieved.state == FeatureViewState.AVAILABLE_ONLINE + store.teardown() + + def test_reapply_does_not_reset_state(self, local_feature_store): + """feast apply with a default-state FV must not reset an existing state.""" + store = local_feature_store + fv = _simple_feature_view() + store.apply([fv]) + + # Simulate materialization having moved state to AVAILABLE_ONLINE + fv.state = FeatureViewState.AVAILABLE_ONLINE + store.registry.apply_feature_view(fv, store.project) + retrieved = store.get_feature_view("test_fv") + assert retrieved.state == FeatureViewState.AVAILABLE_ONLINE + + # Re-apply with a fresh FV (default STATE_UNSPECIFIED) — should preserve state + fresh_fv = _simple_feature_view() + assert fresh_fv.state == FeatureViewState.STATE_UNSPECIFIED + store.apply([fresh_fv]) + retrieved = store.get_feature_view("test_fv") + assert retrieved.state == FeatureViewState.AVAILABLE_ONLINE + store.teardown() + + +# --------------------------------------------------------------------------- +# Materialization blocks disabled feature views +# --------------------------------------------------------------------------- + + +class TestMaterializationDisabledBlocking: + def test_materialize_disabled_fv_by_name_raises(self, local_feature_store): + store = local_feature_store + entity = Entity(name="entity_1", join_keys=["entity_id"]) + fv = FeatureView( + name="test_fv", + entities=[entity], + schema=[ + Field(name="f1", dtype=Float32), + Field(name="entity_id", dtype=Int64), + ], + source=_batch_source(), + ttl=timedelta(days=1), + online=True, + enabled=False, + ) + store.apply([entity, fv]) + + with pytest.raises(ValueError, match="disabled"): + store.materialize( + feature_views=["test_fv"], + start_date=datetime.utcnow() - timedelta(hours=1), + end_date=datetime.utcnow(), + ) + store.teardown()