# Copyright (c) Meta Platforms, Inc. and affiliates. # # 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. from folly.iobuf import IOBuf def roundtrip_MyStruct(x: object) -> object: ... def roundtrip_MyUnion(x: object) -> object: ... def roundtrip_MyDataItem(x: object) -> object: ... def roundtrip_MyEnum(x: object) -> object: ... def roundtrip_DoubledPair(x: object) -> object: ... def roundtrip_StringPair(x: object) -> object: ... def roundtrip_EmptyStruct(x: object) -> object: ... def roundtrip_PrimitiveStruct(x: object) -> object: ... def roundtrip_ListStruct(x: object) -> object: ... def roundtrip_SetStruct(x: object) -> object: ... def roundtrip_Map(x: object) -> object: ... def roundtrip_ComposeStruct(x: object) -> object: ... def roundtrip_AdaptedFields(x: object) -> object: ... def check_MyStruct(x: object) -> bool: ... def check_MyDataItem(x: object) -> bool: ... def check_MyUnion(x: object) -> bool: ... def check_MyEnum(x: object) -> bool: ... def check_DoubledPair(x: object) -> bool: ... def check_StringPair(x: object) -> bool: ... def check_PrimitiveStruct(x: object) -> bool: ... def check_ListStruct(x: object) -> bool: ... def check_SetStruct(x: object) -> bool: ... def check_MapStruct(x: object) -> bool: ... def check_ComposeStruct(x: object) -> bool: ... def extract_and_serialize_PrimitiveStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_PrimitiveStruct(x: object) -> IOBuf: ... def extract_and_serialize_MyStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_MyStruct(x: object) -> IOBuf: ... def extract_and_serialize_AdaptedFields(x: object) -> IOBuf: ... def deserialize_and_serialize_AdaptedFields(x: object) -> IOBuf: ... def extract_and_serialize_ListStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_ListStruct(x: object) -> IOBuf: ... def extract_and_serialize_SetStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_SetStruct(x: object) -> IOBuf: ... def extract_and_serialize_MapStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_MapStruct(x: object) -> IOBuf: ... def extract_and_serialize_ComposeStruct(x: object) -> IOBuf: ... def deserialize_and_serialize_ComposeStruct(x: object) -> IOBuf: ...