def _fbthrift_gen_metadata_service_RederivedService(metadata_struct: _fbthrift_metadata.ThriftMetadata) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.RederivedService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction(name="get_seven", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService(name=qualified_name, functions=functions, parent="module.DerivedService", structured_annotations=[ ]) new_struct = metadata_struct(services=service_dict) new_struct = _fbthrift_gen_metadata_service_DerivedService(new_struct) # return value return new_struct
def _fbthrift_gen_metadata_service_TestService(metadata_struct: _fbthrift_metadata.ThriftMetadata) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "emptyns.TestService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction(name="init", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I64_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I64_TYPE), name="int1", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService(name=qualified_name, functions=functions, structured_annotations=[ ]) new_struct = metadata_struct(services=service_dict) # int1 # return value return new_struct
def _fbthrift_gen_metadata_service_FB303Service( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.FB303Service" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="simple_rpc", return_type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.ReservedKeyword")), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="int_parameter", is_optional=False, structured_annotations=[ _fbthrift_metadata.ThriftConstStruct( type=_fbthrift_metadata.ThriftStructType( name="hack.Name"), fields={ "name": _fbthrift_metadata.ThriftConstValue( cv_string="renamed_parameter"), }), ]), ], exceptions=[], is_oneway=False, structured_annotations=[ _fbthrift_metadata.ThriftConstStruct( type=_fbthrift_metadata.ThriftStructType(name="hack.Name"), fields={ "name": _fbthrift_metadata.ThriftConstValue( cv_string="renamed_rpc"), }), ]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) # int_parameter new_struct = _fbthrift_gen_metadata_struct_ReservedKeyword( new_struct) # return value return new_struct
def _fbthrift_gen_metadata_service_NullService( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "empty.NullService" if qualified_name in metadata_struct.services: return metadata_struct functions = [] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) return new_struct
def _fbthrift_gen_metadata_service_MyService( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.MyService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="query", return_type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.MyStruct")), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_union=_fbthrift_metadata.ThriftUnionType( name="module.MyUnion")), name="u", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) new_struct = _fbthrift_gen_metadata_struct_MyUnion(new_struct) # u new_struct = _fbthrift_gen_metadata_struct_MyStruct( new_struct) # return value return new_struct
def _fbthrift_gen_metadata_service_FooService( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.FooService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="simple_rpc", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[ _fbthrift_metadata.ThriftConstStruct( type=_fbthrift_metadata.ThriftStructType(name="hack.Name"), fields={ "name": _fbthrift_metadata.ThriftConstValue( cv_string="RenamedService"), }), ]) new_struct = metadata_struct(services=service_dict) # return value return new_struct
def _fbthrift_gen_metadata_service_Raiser( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.Raiser" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="doBland", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="doRaise", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Banal")), name="b", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Fiery")), name="f", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=3, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Serious")), name="s", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="get200", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="get500", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), arguments=[], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Fiery")), name="f", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Banal")), name="b", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=3, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.Serious")), name="s", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) # return value new_struct = _fbthrift_gen_metadata_exception_Banal(new_struct) # b new_struct = _fbthrift_gen_metadata_exception_Fiery(new_struct) # f new_struct = _fbthrift_gen_metadata_exception_Serious(new_struct) # s # return value # return value new_struct = _fbthrift_gen_metadata_exception_Fiery(new_struct) # f new_struct = _fbthrift_gen_metadata_exception_Banal(new_struct) # b new_struct = _fbthrift_gen_metadata_exception_Serious(new_struct) # s # return value return new_struct
def _fbthrift_gen_metadata_service_SimpleService(metadata_struct: _fbthrift_metadata.ThriftMetadata) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.SimpleService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction(name="get_five", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="add_five", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), name="num", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="do_nothing", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_VOID_TYPE), arguments=[ ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="concat", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="first", is_optional=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftField(id=2, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="second", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_value", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleStruct")), name="simple_struct", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="negate", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BOOL_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BOOL_TYPE), name="input", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="tiny", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BYTE_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BYTE_TYPE), name="input", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="small", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), name="input", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="big", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I64_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I64_TYPE), name="input", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="two", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_FLOAT_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_FLOAT_TYPE), name="input", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="expected_exception", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_VOID_TYPE), arguments=[ ], exceptions = [ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleException")), name="se", is_optional=False, structured_annotations=[ ]), ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="unexpected_exception", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="sum_i16_list", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE))), name="numbers", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="sum_i32_list", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))), name="numbers", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="sum_i64_list", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I64_TYPE))), name="numbers", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="concat_many", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), name="words", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="count_structs", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleStruct")))), name="items", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="sum_set", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))), name="numbers", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="contains_word", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BOOL_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), name="words", is_optional=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftField(id=2, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="word", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_map_value", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), name="words", is_optional=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftField(id=2, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="key", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="map_length", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleStruct")))), name="items", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="sum_map_values", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE))), name="items", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="complex_sum_i32", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.ComplexStruct")), name="counter", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="repeat_name", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.ComplexStruct")), name="counter", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_struct", return_type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleStruct")), arguments=[ ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="fib", return_type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), name="n", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="unique_words", return_type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), name="words", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="words_count", return_type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), name="words", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="set_enum", return_type=_fbthrift_metadata.ThriftType(t_enum=_fbthrift_metadata.ThriftEnumType(name="module.AnEnum")), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_enum=_fbthrift_metadata.ThriftEnumType(name="module.AnEnum")), name="in_enum", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="list_of_lists", return_type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), name="num_lists", is_optional=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftField(id=2, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I16_TYPE), name="num_items", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="word_character_frequency", return_type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="sentence", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="list_of_sets", return_type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), name="some_words", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="nested_map_argument", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.SimpleStruct")))))), name="struct_map", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="make_sentence", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))))), name="word_chars", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_union", return_type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE))))), name="sets", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_keys", return_type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_map=_fbthrift_metadata.ThriftMapType(keyType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE),valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_STRING_TYPE))))), name="string_map", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="lookup_double", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_FLOAT_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_I32_TYPE), name="key", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="retrieve_binary", return_type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BINARY_TYPE), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BINARY_TYPE), name="something", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="contain_binary", return_type=_fbthrift_metadata.ThriftType(t_set=_fbthrift_metadata.ThriftSetType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BINARY_TYPE))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_primitive=_fbthrift_metadata.ThriftPrimitiveType.THRIFT_BINARY_TYPE))), name="binaries", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="contain_enum", return_type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_enum=_fbthrift_metadata.ThriftEnumType(name="module.AnEnum")))), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_list=_fbthrift_metadata.ThriftListType(valueType=_fbthrift_metadata.ThriftType(t_enum=_fbthrift_metadata.ThriftEnumType(name="module.AnEnum")))), name="the_enum", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), _fbthrift_metadata.ThriftFunction(name="get_binary_union_struct", return_type=_fbthrift_metadata.ThriftType(t_struct=_fbthrift_metadata.ThriftStructType(name="module.BinaryUnionStruct")), arguments=[ _fbthrift_metadata.ThriftField(id=1, type=_fbthrift_metadata.ThriftType(t_union=_fbthrift_metadata.ThriftUnionType(name="module.BinaryUnion")), name="u", is_optional=False, structured_annotations=[ ]), ], exceptions = [ ], is_oneway=False, structured_annotations=[ ]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService(name=qualified_name, functions=functions, structured_annotations=[ ]) new_struct = metadata_struct(services=service_dict) # return value # num # return value # return value # first # second # return value new_struct = _fbthrift_gen_metadata_struct_SimpleStruct(new_struct) # simple_struct # return value # input # return value # input # return value # input # return value # input # return value # input # return value new_struct = _fbthrift_gen_metadata_exception_SimpleException(new_struct) # se # return value # return value # numbers # return value # numbers # return value # numbers # return value # words # return value new_struct = _fbthrift_gen_metadata_struct_SimpleStruct(new_struct) # items # return value # numbers # return value # words # word # return value # key # val # words # key # return value # key new_struct = _fbthrift_gen_metadata_struct_SimpleStruct(new_struct) # val # items # return value # key # val # items # return value new_struct = _fbthrift_gen_metadata_struct_ComplexStruct(new_struct) # counter # return value new_struct = _fbthrift_gen_metadata_struct_ComplexStruct(new_struct) # counter # return value new_struct = _fbthrift_gen_metadata_struct_SimpleStruct(new_struct) # return value # n # return value # words # return value # words # key # val # return value new_struct = _fbthrift_gen_metadata_enum_AnEnum(new_struct) # in_enum new_struct = _fbthrift_gen_metadata_enum_AnEnum(new_struct) # return value # num_lists # num_items # return value # sentence # key # key # val # val # return value # some_words # return value # key new_struct = _fbthrift_gen_metadata_struct_SimpleStruct(new_struct) # val # struct_map # return value # word_chars # return value # sets # return value # key # val # string_map # return value # key # return value # something # return value # binaries # return value new_struct = _fbthrift_gen_metadata_enum_AnEnum(new_struct) # the_enum new_struct = _fbthrift_gen_metadata_enum_AnEnum(new_struct) # return value new_struct = _fbthrift_gen_metadata_struct_BinaryUnion(new_struct) # u new_struct = _fbthrift_gen_metadata_struct_BinaryUnionStruct(new_struct) # return value return new_struct
def _fbthrift_gen_metadata_service_DbMixedStackArguments( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.DbMixedStackArguments" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="getDataByKey0", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_BINARY_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), name="key", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="getDataByKey1", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_BINARY_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), name="key", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) # key # return value # key # return value return new_struct
def _fbthrift_gen_metadata_service_MyService( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.MyService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="ping", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="getRandomData", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="sink", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="sink", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="putDataById", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="id", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), name="data", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="hasDataById", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_BOOL_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="id", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="getDataById", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="id", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="deleteDataById", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="id", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="lobDataById", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I64_TYPE), name="id", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_STRING_TYPE), name="data", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=True, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="invalid_return_for_hack", return_type=_fbthrift_metadata.ThriftType( t_set=_fbthrift_metadata.ThriftSetType( valueType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_DOUBLE_TYPE))), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[ _fbthrift_metadata.ThriftConstStruct( type=_fbthrift_metadata.ThriftStructType( name="hack.SkipCodegen"), fields={ "reason": _fbthrift_metadata.ThriftConstValue( cv_string="Invalid key type"), }), ]), _fbthrift_metadata.ThriftFunction( name="rpc_skipped_codegen", return_type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_VOID_TYPE), arguments=[], exceptions=[], is_oneway=False, structured_annotations=[ _fbthrift_metadata.ThriftConstStruct( type=_fbthrift_metadata.ThriftStructType( name="hack.SkipCodegen"), fields={ "reason": _fbthrift_metadata.ThriftConstValue( cv_string="Skip function deprecation"), }), ]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) # return value # return value # sink # return value # id # data # return value # id # return value # id # return value # id # return value # id # data # return value # return value # return value return new_struct
def _fbthrift_gen_metadata_service_PubSubStreamingService( metadata_struct: _fbthrift_metadata.ThriftMetadata ) -> _fbthrift_metadata.ThriftMetadata: qualified_name = "module.PubSubStreamingService" if qualified_name in metadata_struct.services: return metadata_struct functions = [ _fbthrift_metadata.ThriftFunction( name="returnstream", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="i32_from", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="i32_to", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="streamthrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="servicethrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.FooEx")), name="e", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="boththrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.FooEx")), name="e", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="responseandstreamstreamthrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), initialResponseType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="responseandstreamservicethrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), initialResponseType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.FooEx")), name="e", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="responseandstreamboththrows", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), initialResponseType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="foo", is_optional=False, structured_annotations=[]), ], exceptions=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_struct=_fbthrift_metadata.ThriftStructType( name="module.FooEx")), name="e", is_optional=False, structured_annotations=[]), ], is_oneway=False, structured_annotations=[]), _fbthrift_metadata.ThriftFunction( name="returnstreamFast", return_type=_fbthrift_metadata.ThriftType( t_stream=_fbthrift_metadata.ThriftStreamType( elemType=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE))), arguments=[ _fbthrift_metadata.ThriftField( id=1, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="i32_from", is_optional=False, structured_annotations=[]), _fbthrift_metadata.ThriftField( id=2, type=_fbthrift_metadata.ThriftType( t_primitive=_fbthrift_metadata.ThriftPrimitiveType. THRIFT_I32_TYPE), name="i32_to", is_optional=False, structured_annotations=[]), ], exceptions=[], is_oneway=False, structured_annotations=[]), ] service_dict = dict(metadata_struct.services) service_dict[qualified_name] = _fbthrift_metadata.ThriftService( name=qualified_name, functions=functions, structured_annotations=[]) new_struct = metadata_struct(services=service_dict) # i32_from # i32_to # elem # response # return value # foo # elem # response # return value # foo new_struct = _fbthrift_gen_metadata_exception_FooEx(new_struct) # e # elem # response # return value # foo new_struct = _fbthrift_gen_metadata_exception_FooEx(new_struct) # e # elem # response # return value # foo # elem # response # return value # foo new_struct = _fbthrift_gen_metadata_exception_FooEx(new_struct) # e # elem # response # return value # foo new_struct = _fbthrift_gen_metadata_exception_FooEx(new_struct) # e # elem # response # return value # i32_from # i32_to # elem # response # return value return new_struct