예제 #1
0
 class Newer(betterproto.Message):
     foo: bool = betterproto.bool_field(1)
     bar: int = betterproto.int32_field(2)
     baz: str = betterproto.string_field(3)
예제 #2
0
class CMsgClientUcmUpdatePublishedFile(betterproto.Message):
    app_id: int = betterproto.uint32_field(1)
    published_file_id: int = betterproto.fixed64_field(2)
    file_name: str = betterproto.string_field(3)
    preview_file_name: str = betterproto.string_field(4)
    title: str = betterproto.string_field(5)
    description: str = betterproto.string_field(6)
    tags: List[str] = betterproto.string_field(7)
    visibility: int = betterproto.int32_field(8)
    update_file: bool = betterproto.bool_field(9)
    update_preview_file: bool = betterproto.bool_field(10)
    update_title: bool = betterproto.bool_field(11)
    update_description: bool = betterproto.bool_field(12)
    update_tags: bool = betterproto.bool_field(13)
    update_visibility: bool = betterproto.bool_field(14)
    change_description: str = betterproto.string_field(15)
    update_url: bool = betterproto.bool_field(16)
    url: str = betterproto.string_field(17)
    update_content_manifest: bool = betterproto.bool_field(18)
    content_manifest: int = betterproto.fixed64_field(19)
    metadata: str = betterproto.string_field(20)
    update_metadata: bool = betterproto.bool_field(21)
    language: int = betterproto.int32_field(22)
    removed_kvtags: List[str] = betterproto.string_field(23)
    kvtags: List["CMsgClientUcmUpdatePublishedFileKeyValueTag"] = betterproto.message_field(24)
    previews: List["CMsgClientUcmUpdatePublishedFileAdditionalPreview"] = betterproto.message_field(25)
    previews_to_remove: List[int] = betterproto.int32_field(26)
    clear_in_progress: bool = betterproto.bool_field(27)
    remove_all_kvtags: bool = betterproto.bool_field(28)
class CMsgDOTASetGroupOpenStatus(betterproto.Message):
    open: bool = betterproto.bool_field(1)
예제 #4
0
class FieldStatusAnnotation(betterproto.Message):
    # The entity is work-in-progress and subject to breaking changes.
    work_in_progress: bool = betterproto.bool_field(1)
예제 #5
0
class CMsgClientUcmUpdatePublishedFileResponse(betterproto.Message):
    eresult: int = betterproto.int32_field(1)
    needs_workshop_legal_agreement_acceptance: bool = betterproto.bool_field(2)
예제 #6
0
class CMsgGCToGCStoreProcessCDKeyTransactionResponse(betterproto.Message):
    success: bool = betterproto.bool_field(1)
예제 #7
0
class CMsgGCToGCBroadcastConsoleCommand(betterproto.Message):
    con_command: str = betterproto.string_field(1)
    report_output: bool = betterproto.bool_field(2)
    sending_gc: int = betterproto.uint32_field(3)
    output_initiator: str = betterproto.string_field(4)
예제 #8
0
class CEcon_FlushInventoryCache_Response(betterproto.Message):
    success: bool = betterproto.bool_field(1)
예제 #9
0
class CMsgGCToGCUpdateSubscriptionItems(betterproto.Message):
    account_id: int = betterproto.uint32_field(1)
    always_notify: bool = betterproto.bool_field(2)
예제 #10
0
class CMsgDOTAChatRegionsEnabled(betterproto.Message):
    enable_all_regions: bool = betterproto.bool_field(1)
    enabled_regions: List[
        "CMsgDOTAChatRegionsEnabledRegion"] = betterproto.message_field(2)
예제 #11
0
class Gzip(betterproto.Message):
    """[#next-free-field: 11]"""

    # Value from 1 to 9 that controls the amount of internal memory used by zlib.
    # Higher values use more memory, but are faster and produce better
    # compression results. The default value is 5.
    memory_level: Optional[int] = betterproto.message_field(
        1, wraps=betterproto.TYPE_UINT32
    )
    # Minimum response length, in bytes, which will trigger compression. The
    # default value is 30. .. attention:    **This field is deprecated**. Set the
    # `compressor` field instead.
    content_length: Optional[int] = betterproto.message_field(
        2, wraps=betterproto.TYPE_UINT32
    )
    # A value used for selecting the zlib compression level. This setting will
    # affect speed and amount of compression applied to the content. "BEST"
    # provides higher compression at the cost of higher latency, "SPEED" provides
    # lower compression with minimum impact on response time. "DEFAULT" provides
    # an optimal result between speed and compression. This field will be set to
    # "DEFAULT" if not specified.
    compression_level: "GzipCompressionLevelEnum" = betterproto.enum_field(3)
    # A value used for selecting the zlib compression strategy which is directly
    # related to the characteristics of the content. Most of the time "DEFAULT"
    # will be the best choice, though there are situations which changing this
    # parameter might produce better results. For example, run-length encoding
    # (RLE) is typically used when the content is known for having sequences
    # which same data occurs many consecutive times. For more information about
    # each strategy, please refer to zlib manual.
    compression_strategy: "GzipCompressionStrategy" = betterproto.enum_field(4)
    # Set of strings that allows specifying which mime-types yield compression;
    # e.g., application/json, text/html, etc. When this field is not defined,
    # compression will be applied to the following mime-types:
    # "application/javascript", "application/json", "application/xhtml+xml",
    # "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml". ..
    # attention:    **This field is deprecated**. Set the `compressor` field
    # instead.
    content_type: List[str] = betterproto.string_field(6)
    # If true, disables compression when the response contains an etag header.
    # When it is false, the filter will preserve weak etags and remove the ones
    # that require strong validation. .. attention:    **This field is
    # deprecated**. Set the `compressor` field instead.
    disable_on_etag_header: bool = betterproto.bool_field(7)
    # If true, removes accept-encoding from the request headers before
    # dispatching it to the upstream so that responses do not get compressed
    # before reaching the filter. .. attention:    **This field is deprecated**.
    # Set the `compressor` field instead.
    remove_accept_encoding_header: bool = betterproto.bool_field(8)
    # Value from 9 to 15 that represents the base two logarithmic of the
    # compressor's window size. Larger window results in better compression at
    # the expense of memory usage. The default is 12 which will produce a 4096
    # bytes window. For more details about this parameter, please refer to zlib
    # manual > deflateInit2.
    window_bits: Optional[int] = betterproto.message_field(
        9, wraps=betterproto.TYPE_UINT32
    )
    # Set of configuration parameters common for all compression filters. If this
    # field is set then the fields `content_length`, `content_type`,
    # `disable_on_etag_header` and `remove_accept_encoding_header` are ignored.
    compressor: "__compressor_v2__.Compressor" = betterproto.message_field(10)

    def __post_init__(self) -> None:
        super().__post_init__()
        if self.content_length:
            warnings.warn("Gzip.content_length is deprecated", DeprecationWarning)
        if self.content_type:
            warnings.warn("Gzip.content_type is deprecated", DeprecationWarning)
        if self.disable_on_etag_header:
            warnings.warn(
                "Gzip.disable_on_etag_header is deprecated", DeprecationWarning
            )
        if self.remove_accept_encoding_header:
            warnings.warn(
                "Gzip.remove_accept_encoding_header is deprecated", DeprecationWarning
            )
예제 #12
0
class EventA3Params(betterproto.Message):
    a3_offset: int = betterproto.int32_field(1)
    report_on_leave: bool = betterproto.bool_field(2)

    def __post_init__(self) -> None:
        super().__post_init__()
예제 #13
0
class Confupdateopt(betterproto.Message):
    perform: bool = betterproto.bool_field(1)
    new_conf: configdt.Devconf = betterproto.message_field(2)
예제 #14
0
 class Older(betterproto.Message):
     foo: bool = betterproto.bool_field(1)
예제 #15
0
class CMsgDevNewItemRequestResponse(betterproto.Message):
    success: bool = betterproto.bool_field(1)
예제 #16
0
class CExtraMsgBlock(betterproto.Message):
    msg_type: int = betterproto.uint32_field(1)
    contents: bytes = betterproto.bytes_field(2)
    msg_key: int = betterproto.uint64_field(3)
    is_compressed: bool = betterproto.bool_field(4)
예제 #17
0
class CMsgDevUnlockAllItemStylesResponse(betterproto.Message):
    success: bool = betterproto.bool_field(1)
예제 #18
0
class CMsgEconPlayerStrangeCountAdjustment(betterproto.Message):
    account_id: int = betterproto.uint32_field(1)
    strange_count_adjustments: List[
        "CMsgEconPlayerStrangeCountAdjustmentCStrangeCountAdjustment"] = betterproto.message_field(
            2)
    turbo_mode: bool = betterproto.bool_field(3)
예제 #19
0
class CMsgGCToGCStoreProcessSettlementResponse(betterproto.Message):
    success: bool = betterproto.bool_field(1)
예제 #20
0
class CMsgGCToGCGetUserSessionServerResponse(betterproto.Message):
    server_steam_id: float = betterproto.fixed64_field(1)
    is_online: bool = betterproto.bool_field(2)
예제 #21
0
class CMsgGCToGCConsoleOutput(betterproto.Message):
    initiator: str = betterproto.string_field(1)
    sending_gc: int = betterproto.uint32_field(2)
    msgs: List[
        "CMsgGCToGCConsoleOutputOutputLine"] = betterproto.message_field(3)
    is_last_for_source_job: bool = betterproto.bool_field(4)
예제 #22
0
class CMsgGCToGCCanUseDropRateBonus(betterproto.Message):
    account_id: int = betterproto.uint32_field(1)
    drop_rate_bonus: float = betterproto.float_field(2)
    booster_type: int = betterproto.uint32_field(3)
    exclusive_item_def: int = betterproto.uint32_field(4)
    allow_equal_rate: bool = betterproto.bool_field(5)
예제 #23
0
class StatusAnnotation(betterproto.Message):
    # The entity is work-in-progress and subject to breaking changes.
    work_in_progress: bool = betterproto.bool_field(1)
    # The entity belongs to a package with the given version status.
    package_version_status: "PackageVersionStatus" = betterproto.enum_field(2)
예제 #24
0
class CMsgGCToGCRefreshSOCache(betterproto.Message):
    account_id: int = betterproto.uint32_field(1)
    reload: bool = betterproto.bool_field(2)
예제 #25
0
class CMsgClientUcmPublishFileResponse(betterproto.Message):
    eresult: int = betterproto.int32_field(1)
    published_file_id: int = betterproto.fixed64_field(2)
    needs_workshop_legal_agreement_acceptance: bool = betterproto.bool_field(3)
예제 #26
0
class CMsgGCToGCCheckAccountTradeStatus(betterproto.Message):
    account_id: int = betterproto.uint32_field(1)
    initiator: bool = betterproto.bool_field(2)
class CMsgDOTAPartyMemberSetCoach(betterproto.Message):
    wants_coach: bool = betterproto.bool_field(1)
예제 #28
0
class CMsgGCToGCCheckAccountTradeStatusResponse(betterproto.Message):
    can_trade: bool = betterproto.bool_field(1)
    error_code: int = betterproto.uint32_field(2)
class CMsgDOTAGroupMergeResponse(betterproto.Message):
    initiator_group_id: float = betterproto.fixed64_field(1)
    accept: bool = betterproto.bool_field(2)
예제 #30
0
 class TestMessage(betterproto.Message):
     some_int: int = betterproto.int32_field(1)
     some_double: float = betterproto.double_field(2)
     some_str: str = betterproto.string_field(3)
     some_bool: bool = betterproto.bool_field(4)