Viewing File: /home/ubuntu/combine_ai/combine/lib/python3.10/site-packages/streamlit/proto/Image_pb2.pyi

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

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.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
    import typing as typing_extensions
else:
    import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class Image(google.protobuf.message.Message):
    """An image which can be displayed on the screen."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    URL_FIELD_NUMBER: builtins.int
    CAPTION_FIELD_NUMBER: builtins.int
    MARKUP_FIELD_NUMBER: builtins.int
    url: builtins.str
    caption: builtins.str
    markup: builtins.str
    """DEPRECATED: markup is not used anymore.
    SVGs are added as data uris in the url field.
    """
    def __init__(
        self,
        *,
        url: builtins.str = ...,
        caption: builtins.str = ...,
        markup: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal["caption", b"caption", "markup", b"markup", "url", b"url"]) -> None: ...

global___Image = Image

class ImageList(google.protobuf.message.Message):
    """A set of images."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    IMGS_FIELD_NUMBER: builtins.int
    WIDTH_FIELD_NUMBER: builtins.int
    @property
    def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]: ...
    width: builtins.int
    """The width of each image.
    >0 sets the image width explicitly
    -1 means use the image width
    -2 means use the column width
    -3 means use the smaller of image width & column width
    """
    def __init__(
        self,
        *,
        imgs: collections.abc.Iterable[global___Image] | None = ...,
        width: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal["imgs", b"imgs", "width", b"width"]) -> None: ...

global___ImageList = ImageList
Back to Directory File Manager