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

import builtins
import sys
import google.protobuf.descriptor
import google.protobuf.message
import temporalio.api.common.v1.message_pb2
import typing as typing_extensions

"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""
if sys.version_info >= (3, 8):
    ...
else:
    ...
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class UserMetadata(google.protobuf.message.Message):
    """Information a user can set, often for use by user interfaces."""
    DESCRIPTOR: google.protobuf.descriptor.Descriptor
    SUMMARY_FIELD_NUMBER: builtins.int
    DETAILS_FIELD_NUMBER: builtins.int
    @property
    def summary(self) -> temporalio.api.common.v1.message_pb2.Payload:
        """Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload
        that is a single JSON string for use in user interfaces. User interface formatting may not
        apply to this text when used in "title" situations. The payload data section is limited to 400
        bytes by default.
        """
        ...
    
    @property
    def details(self) -> temporalio.api.common.v1.message_pb2.Payload:
        """Long-form text that provides details. This payload should be a "json/plain"-encoded payload
        that is a single JSON string for use in user interfaces. User interface formatting may apply to
        this text in common use. The payload data section is limited to 20000 bytes by default.
        """
        ...
    
    def __init__(self, *, summary: temporalio.api.common.v1.message_pb2.Payload | None = ..., details: temporalio.api.common.v1.message_pb2.Payload | None = ...) -> None:
        ...
    
    def HasField(self, field_name: typing_extensions.Literal["details", b"details", "summary", b"summary"]) -> builtins.bool:
        ...
    
    def ClearField(self, field_name: typing_extensions.Literal["details", b"details", "summary", b"summary"]) -> None:
        ...
    


global___UserMetadata = UserMetadata
