"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import abc
import collections.abc
import grpc
import grpc.aio
import typing
import yandex.cloud.operation.operation_pb2
import yandex.cloud.video.v1.style_preset_pb2
import yandex.cloud.video.v1.style_preset_service_pb2

_T = typing.TypeVar("_T")

class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...

class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext):  # type: ignore[misc, type-arg]
    ...

class StylePresetServiceStub:
    """StylePreset management service.
    Provides methods for creating, retrieving, updating, and deleting style presets,
    which define the visual appearance and layout of video players and associated widgets.
    """

    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Get: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
        yandex.cloud.video.v1.style_preset_pb2.StylePreset,
    ]
    """Retrieves detailed information about a specific style preset by its ID.
    Returns all style preset properties, colors, layout settings, and widget configurations.
    """

    List: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
        yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse,
    ]
    """Lists all style presets in a specific channel with pagination support.
    Results can be filtered and sorted using the provided parameters.
    """

    Create: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Creates a new style preset in the specified channel with the provided visual settings.
    Style presets define the appearance of players, including colors, spacing, borders, and widgets.
    """

    Update: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates an existing style preset's properties and visual settings.
    Only fields specified in the field_mask will be updated.
    """

    Delete: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes a specific style preset by its ID.
    This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
    """

class StylePresetServiceAsyncStub:
    """StylePreset management service.
    Provides methods for creating, retrieving, updating, and deleting style presets,
    which define the visual appearance and layout of video players and associated widgets.
    """

    Get: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
        yandex.cloud.video.v1.style_preset_pb2.StylePreset,
    ]
    """Retrieves detailed information about a specific style preset by its ID.
    Returns all style preset properties, colors, layout settings, and widget configurations.
    """

    List: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
        yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse,
    ]
    """Lists all style presets in a specific channel with pagination support.
    Results can be filtered and sorted using the provided parameters.
    """

    Create: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Creates a new style preset in the specified channel with the provided visual settings.
    Style presets define the appearance of players, including colors, spacing, borders, and widgets.
    """

    Update: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates an existing style preset's properties and visual settings.
    Only fields specified in the field_mask will be updated.
    """

    Delete: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes a specific style preset by its ID.
    This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
    """

class StylePresetServiceServicer(metaclass=abc.ABCMeta):
    """StylePreset management service.
    Provides methods for creating, retrieving, updating, and deleting style presets,
    which define the visual appearance and layout of video players and associated widgets.
    """

    @abc.abstractmethod
    def Get(
        self,
        request: yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.video.v1.style_preset_pb2.StylePreset, collections.abc.Awaitable[yandex.cloud.video.v1.style_preset_pb2.StylePreset]]:
        """Retrieves detailed information about a specific style preset by its ID.
        Returns all style preset properties, colors, layout settings, and widget configurations.
        """

    @abc.abstractmethod
    def List(
        self,
        request: yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse, collections.abc.Awaitable[yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse]]:
        """Lists all style presets in a specific channel with pagination support.
        Results can be filtered and sorted using the provided parameters.
        """

    @abc.abstractmethod
    def Create(
        self,
        request: yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Creates a new style preset in the specified channel with the provided visual settings.
        Style presets define the appearance of players, including colors, spacing, borders, and widgets.
        """

    @abc.abstractmethod
    def Update(
        self,
        request: yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Updates an existing style preset's properties and visual settings.
        Only fields specified in the field_mask will be updated.
        """

    @abc.abstractmethod
    def Delete(
        self,
        request: yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Deletes a specific style preset by its ID.
        This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
        """

def add_StylePresetServiceServicer_to_server(servicer: StylePresetServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
