"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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 sys
import typing as _typing

if sys.version_info >= (3, 11):
    from typing import TypeAlias as _TypeAlias, Never as _Never
else:
    from typing_extensions import TypeAlias as _TypeAlias, Never as _Never

DESCRIPTOR: _descriptor.FileDescriptor

@_typing.final
class AutoRerun(_message.Message):
    DESCRIPTOR: _descriptor.Descriptor

    INTERVAL_FIELD_NUMBER: _builtins.int
    FRAGMENT_ID_FIELD_NUMBER: _builtins.int
    interval: _builtins.float
    """The interval of reruns in seconds"""
    fragment_id: _builtins.str
    """The fragment ID to rerun"""
    def __init__(
        self,
        *,
        interval: _builtins.float = ...,
        fragment_id: _builtins.str = ...,
    ) -> None: ...
    _HasFieldArgType: _TypeAlias = _Never  # noqa: Y015
    def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
    _ClearFieldArgType: _TypeAlias = _typing.Literal["fragment_id", b"fragment_id", "interval", b"interval"]  # noqa: Y015
    def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
    def WhichOneof(self, oneof_group: _Never) -> None: ...

Global___AutoRerun: _TypeAlias = AutoRerun  # noqa: Y015

@_typing.final
class StopAutoRerun(_message.Message):
    """Sent when the server evicts fragments (e.g. an ancestor stopped rendering
    them), so the client can cancel their pending auto-rerun timers.
    """

    DESCRIPTOR: _descriptor.Descriptor

    FRAGMENT_IDS_FIELD_NUMBER: _builtins.int
    @_builtins.property
    def fragment_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
        """The fragment IDs whose auto-rerun timers should be cancelled."""

    def __init__(
        self,
        *,
        fragment_ids: _abc.Iterable[_builtins.str] | None = ...,
    ) -> None: ...
    _HasFieldArgType: _TypeAlias = _Never  # noqa: Y015
    def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
    _ClearFieldArgType: _TypeAlias = _typing.Literal["fragment_ids", b"fragment_ids"]  # noqa: Y015
    def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
    def WhichOneof(self, oneof_group: _Never) -> None: ...

Global___StopAutoRerun: _TypeAlias = StopAutoRerun  # noqa: Y015
