Return True if transitioning from this state to *target* is allowed.
(self, target: "FeatureViewState")
| 64 | AVAILABLE_ONLINE = 4 |
| 65 | |
| 66 | def can_transition_to(self, target: "FeatureViewState") -> bool: |
| 67 | """Return True if transitioning from this state to *target* is allowed.""" |
| 68 | allowed = _VALID_STATE_TRANSITIONS.get(self, set()) |
| 69 | return target in allowed |
| 70 | |
| 71 | @classmethod |
| 72 | def from_proto(cls, proto_val: int) -> "FeatureViewState": |