def to_proto(self) -> OnDemandFeatureViewProto:
    '\n        Converts an on demand feature view object to its protobuf representation.\n\n        Returns:\n            A OnDemandFeatureViewProto protobuf.\n        '
    meta = OnDemandFeatureViewMeta()
    if self.created_timestamp:
        meta.created_timestamp.FromDatetime(self.created_timestamp)
    if self.last_updated_timestamp:
        meta.last_updated_timestamp.FromDatetime(self.last_updated_timestamp)
    sources = {}
    for (source_name, fv_projection) in self.source_feature_view_projections.items():
        sources[source_name] = OnDemandSource(feature_view_projection=fv_projection.to_proto())
    for (source_name, request_sources) in self.source_request_sources.items():
        sources[source_name] = OnDemandSource(request_data_source=request_sources.to_proto())
    spec = OnDemandFeatureViewSpec(name=self.name, features=[feature.to_proto() for feature in self.features], sources=sources, user_defined_function=UserDefinedFunctionProto(name=self.udf.__name__, body=dill.dumps(self.udf, recurse=True)), description=self.description, tags=self.tags, owner=self.owner)
    return OnDemandFeatureViewProto(spec=spec, meta=meta)
Converts an on demand feature view object to its protobuf representation.

Returns:
    A OnDemandFeatureViewProto protobuf.
def to_proto(self) -> OnDemandFeatureViewProto:
    '\n        Converts an on demand feature view object to its protobuf representation.\n\n        Returns:\n            A OnDemandFeatureViewProto protobuf.\n        '
    meta = OnDemandFeatureViewMeta()
    if self.created_timestamp:
        meta.created_timestamp.FromDatetime(self.created_timestamp)
    if self.last_updated_timestamp:
        meta.last_updated_timestamp.FromDatetime(self.last_updated_timestamp)
    sources = {}
    for (source_name, fv_projection) in self.source_feature_view_projections.items():
        sources[source_name] = OnDemandSource(feature_view_projection=fv_projection.to_proto())
    for (source_name, request_sources) in self.source_request_sources.items():
        sources[source_name] = OnDemandSource(request_data_source=request_sources.to_proto())
    spec = OnDemandFeatureViewSpec(name=self.name, features=[feature.to_proto() for feature in self.features], sources=sources, user_defined_function=UserDefinedFunctionProto(name=self.udf.__name__, body=dill.dumps(self.udf, recurse=True)), description=self.description, tags=self.tags, owner=self.owner)
    return OnDemandFeatureViewProto(spec=spec, meta=meta)