"""
This type stub file was generated by pyright.
"""

import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import streamlit.proto.WidthConfig_pb2
import sys
import typing

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

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.
"""
if sys.version_info >= (3, 10):
    ...
else:
    ...
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Alert(google.protobuf.message.Message):
    """NOTE: This proto type is used by some external services so needs to remain
    relatively stable. While it isn't entirely set in stone, changing it
    may require a good amount of effort so should be avoided if possible.
    """
    DESCRIPTOR: google.protobuf.descriptor.Descriptor
    class _Format:
        ValueType = typing.NewType("ValueType", builtins.int)
        V: typing_extensions.TypeAlias = ValueType
    
    
    class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Alert._Format.ValueType], builtins.type):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        UNUSED: Alert._Format.ValueType
        ERROR: Alert._Format.ValueType
        WARNING: Alert._Format.ValueType
        INFO: Alert._Format.ValueType
        SUCCESS: Alert._Format.ValueType
        ...
    
    
    class Format(_Format, metaclass=_FormatEnumTypeWrapper):
        """Type of Alert"""
        ...
    
    
    UNUSED: Alert.Format.ValueType
    ERROR: Alert.Format.ValueType
    WARNING: Alert.Format.ValueType
    INFO: Alert.Format.ValueType
    SUCCESS: Alert.Format.ValueType
    BODY_FIELD_NUMBER: builtins.int
    FORMAT_FIELD_NUMBER: builtins.int
    ICON_FIELD_NUMBER: builtins.int
    WIDTH_CONFIG_FIELD_NUMBER: builtins.int
    body: builtins.str
    format: global___Alert.Format.ValueType
    icon: builtins.str
    @property
    def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
        """Indicates the width setting: "stetch", "content" or a pixel value."""
        ...
    
    def __init__(self, *, body: builtins.str = ..., format: global___Alert.Format.ValueType = ..., icon: builtins.str = ..., width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...) -> None:
        ...
    
    def HasField(self, field_name: typing.Literal["width_config", b"width_config"]) -> builtins.bool:
        ...
    
    def ClearField(self, field_name: typing.Literal["body", b"body", "format", b"format", "icon", b"icon", "width_config", b"width_config"]) -> None:
        ...
    


global___Alert = Alert
