@classmethod
def from_proto(cls, on_demand_feature_view_proto: OnDemandFeatureViewProto):
    '\n        Creates an on demand feature view from a protobuf representation.\n\n        Args:\n            on_demand_feature_view_proto: A protobuf representation of an on-demand feature view.\n\n        Returns:\n            A OnDemandFeatureView object based on the on-demand feature view protobuf.\n        '
    sources = {}
    for (source_name, on_demand_source) in on_demand_feature_view_proto.spec.sources.items():
        if (on_demand_source.WhichOneof('source') == 'feature_view'):
            sources[source_name] = FeatureView.from_proto(on_demand_source.feature_view).projection
        elif (on_demand_source.WhichOneof('source') == 'feature_view_projection'):
            sources[source_name] = FeatureViewProjection.from_proto(on_demand_source.feature_view_projection)
        else:
            sources[source_name] = RequestSource.from_proto(on_demand_source.request_data_source)
    on_demand_feature_view_obj = cls(name=on_demand_feature_view_proto.spec.name, schema=[Field(name=feature.name, dtype=from_value_type(ValueType(feature.value_type))) for feature in on_demand_feature_view_proto.spec.features], sources=sources, udf=dill.loads(on_demand_feature_view_proto.spec.user_defined_function.body), description=on_demand_feature_view_proto.spec.description, tags=dict(on_demand_feature_view_proto.spec.tags), owner=on_demand_feature_view_proto.spec.owner)
    on_demand_feature_view_obj.projection = FeatureViewProjection.from_definition(on_demand_feature_view_obj)
    if on_demand_feature_view_proto.meta.HasField('created_timestamp'):
        on_demand_feature_view_obj.created_timestamp = on_demand_feature_view_proto.meta.created_timestamp.ToDatetime()
    if on_demand_feature_view_proto.meta.HasField('last_updated_timestamp'):
        on_demand_feature_view_obj.last_updated_timestamp = on_demand_feature_view_proto.meta.last_updated_timestamp.ToDatetime()
    return on_demand_feature_view_obj
Creates an on demand feature view from a protobuf representation.

Args:
    on_demand_feature_view_proto: A protobuf representation of an on-demand feature view.

Returns:
    A OnDemandFeatureView object based on the on-demand feature view protobuf.
@classmethod
def from_proto(cls, on_demand_feature_view_proto: OnDemandFeatureViewProto):
    '\n        Creates an on demand feature view from a protobuf representation.\n\n        Args:\n            on_demand_feature_view_proto: A protobuf representation of an on-demand feature view.\n\n        Returns:\n            A OnDemandFeatureView object based on the on-demand feature view protobuf.\n        '
    sources = {}
    for (source_name, on_demand_source) in on_demand_feature_view_proto.spec.sources.items():
        if (on_demand_source.WhichOneof('source') == 'feature_view'):
            sources[source_name] = FeatureView.from_proto(on_demand_source.feature_view).projection
        elif (on_demand_source.WhichOneof('source') == 'feature_view_projection'):
            sources[source_name] = FeatureViewProjection.from_proto(on_demand_source.feature_view_projection)
        else:
            sources[source_name] = RequestSource.from_proto(on_demand_source.request_data_source)
    on_demand_feature_view_obj = cls(name=on_demand_feature_view_proto.spec.name, schema=[Field(name=feature.name, dtype=from_value_type(ValueType(feature.value_type))) for feature in on_demand_feature_view_proto.spec.features], sources=sources, udf=dill.loads(on_demand_feature_view_proto.spec.user_defined_function.body), description=on_demand_feature_view_proto.spec.description, tags=dict(on_demand_feature_view_proto.spec.tags), owner=on_demand_feature_view_proto.spec.owner)
    on_demand_feature_view_obj.projection = FeatureViewProjection.from_definition(on_demand_feature_view_obj)
    if on_demand_feature_view_proto.meta.HasField('created_timestamp'):
        on_demand_feature_view_obj.created_timestamp = on_demand_feature_view_proto.meta.created_timestamp.ToDatetime()
    if on_demand_feature_view_proto.meta.HasField('last_updated_timestamp'):
        on_demand_feature_view_obj.last_updated_timestamp = on_demand_feature_view_proto.meta.last_updated_timestamp.ToDatetime()
    return on_demand_feature_view_obj