public void Write(TProtocol oprot) { TStruct struc = new TStruct("Xtruct2"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ByteThing != null) { field.Name = "byte_thing"; field.Type = TType.Byte; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteByte(ByteThing.Value); oprot.WriteFieldEnd(); } if (StructThing != null) { field.Name = "struct_thing"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); StructThing.Write(oprot); oprot.WriteFieldEnd(); } if (I32Thing != null) { field.Name = "i32_thing"; field.Type = TType.I32; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteI32(I32Thing.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("MyStruct1"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MByte != null) { field.Name = "m_byte"; field.Type = TType.Byte; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteByte(MByte.Value); oprot.WriteFieldEnd(); } if (MInt != null) { field.Name = "m_int"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32(MInt.Value); oprot.WriteFieldEnd(); } if (MLong != null) { field.Name = "m_long"; field.Type = TType.I64; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteI64(MLong.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("StructB"); oprot.WriteStructBegin(struc); if (Ab == null) throw new TProtocolException(TProtocolException.INVALID_DATA, "missing required property 'Ab'"); TField field = new TField(); if (Aa != null) { field.Name = "aa"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Aa.Write(oprot); oprot.WriteFieldEnd(); } if (Ab != null) { field.Name = "ab"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Ab.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("NestedListsI32x2"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Integerlist != null) { field.Name = "integerlist"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.List, Integerlist.Count)); foreach (List<int?> _iter0 in Integerlist) { { oprot.WriteListBegin(new TList(TType.I32, _iter0.Count)); foreach (int? _iter1 in _iter0) { oprot.WriteI32(_iter1.Value); } oprot.WriteListEnd(); } } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("ListTypeVersioningV1"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Myints != null) { field.Name = "myints"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I32, Myints.Count)); foreach (int? _iter0 in Myints) { oprot.WriteI32(_iter0.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Hello != null) { field.Name = "hello"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Hello); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("ListTypeVersioningV2"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Strings != null) { field.Name = "strings"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, Strings.Count)); foreach (string _iter0 in Strings) { oprot.WriteString(_iter0); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Hello != null) { field.Name = "hello"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Hello); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("VersioningTestV1"); oprot.WriteStructBegin(struc); TField field = new TField(); if (BeginInBoth != null) { field.Name = "begin_in_both"; field.Type = TType.I32; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI32(BeginInBoth.Value); oprot.WriteFieldEnd(); } if (OldString != null) { field.Name = "old_string"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(OldString); oprot.WriteFieldEnd(); } if (EndInBoth != null) { field.Name = "end_in_both"; field.Type = TType.I32; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteI32(EndInBoth.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("OneField"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Field != null) { field.Name = "field"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Field.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("ByteArrayMessage"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MByteArr != null) { field.Name = "m_byteArr"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteBinary(MByteArr); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("U8Message"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MVal != null) { field.Name = "m_val"; field.Type = TType.Byte; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteByte(MVal.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("StringMessage"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MString != null) { field.Name = "m_string"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(MString); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("StructA"); oprot.WriteStructBegin(struc); if (S == null) throw new TProtocolException(TProtocolException.INVALID_DATA, "missing required property 'S'"); TField field = new TField(); if (S != null) { field.Name = "s"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(S); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("ListBonks"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Bonk != null) { field.Name = "bonk"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Bonk.Count)); foreach (Bonk _iter0 in Bonk) { _iter0.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("IntListMessage"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MIntList != null) { field.Name = "m_intList"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I32, MIntList.Count)); foreach (int? _iter0 in MIntList) { oprot.WriteI32(_iter0.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Bonk"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Message != null) { field.Name = "message"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Message); oprot.WriteFieldEnd(); } if (Type != null) { field.Name = "type"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32(Type.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("StructMessage"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MStruct1 != null) { field.Name = "m_struct1"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); MStruct1.Write(oprot); oprot.WriteFieldEnd(); } if (MStruct2 != null) { field.Name = "m_struct2"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); MStruct2.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Nesting"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MyBonk != null) { field.Name = "my_bonk"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); MyBonk.Write(oprot); oprot.WriteFieldEnd(); } if (MyOoe != null) { field.Name = "my_ooe"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); MyOoe.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("MyStruct2"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MString != null) { field.Name = "m_string"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(MString); oprot.WriteFieldEnd(); } if (MInt != null) { field.Name = "m_int"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32(MInt.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("GuessProtocolStruct"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MapField != null) { field.Name = "map_field"; field.Type = TType.Map; field.ID = 7; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.String, TType.String, MapField.Count)); foreach (string _iter0 in MapField.Keys) { oprot.WriteString(_iter0); oprot.WriteString(MapField[_iter0]); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Bools"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ImTrue != null) { field.Name = "im_true"; field.Type = TType.Bool; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteBool(ImTrue.Value); oprot.WriteFieldEnd(); } if (ImFalse != null) { field.Name = "im_false"; field.Type = TType.Bool; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteBool(ImFalse.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("BoolTest"); oprot.WriteStructBegin(struc); TField field = new TField(); if (B != null) { field.Name = "b"; field.Type = TType.Bool; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteBool(B.Value); oprot.WriteFieldEnd(); } if (S != null) { field.Name = "s"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(S); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Insanity"); oprot.WriteStructBegin(struc); TField field = new TField(); if (UserMap != null) { field.Name = "userMap"; field.Type = TType.Map; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.I32, TType.I64, UserMap.Count)); foreach (Numberz? _iter0 in UserMap.Keys) { oprot.WriteI32((int)_iter0.Value); oprot.WriteI64(UserMap[_iter0].Value); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } if (Xtructs != null) { field.Name = "xtructs"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Xtructs.Count)); foreach (Xtruct _iter1 in Xtructs) { _iter1.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("VersioningTestV2"); oprot.WriteStructBegin(struc); TField field = new TField(); if (BeginInBoth != null) { field.Name = "begin_in_both"; field.Type = TType.I32; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI32(BeginInBoth.Value); oprot.WriteFieldEnd(); } if (Newint != null) { field.Name = "newint"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32(Newint.Value); oprot.WriteFieldEnd(); } if (Newbyte != null) { field.Name = "newbyte"; field.Type = TType.Byte; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteByte(Newbyte.Value); oprot.WriteFieldEnd(); } if (Newshort != null) { field.Name = "newshort"; field.Type = TType.I16; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI16(Newshort.Value); oprot.WriteFieldEnd(); } if (Newlong != null) { field.Name = "newlong"; field.Type = TType.I64; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI64(Newlong.Value); oprot.WriteFieldEnd(); } if (Newdouble != null) { field.Name = "newdouble"; field.Type = TType.Double; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteDouble(Newdouble.Value); oprot.WriteFieldEnd(); } if (Newstruct != null) { field.Name = "newstruct"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); Newstruct.Write(oprot); oprot.WriteFieldEnd(); } if (Newlist != null) { field.Name = "newlist"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I32, Newlist.Count)); foreach (int? _iter0 in Newlist) { oprot.WriteI32(_iter0.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Newset != null) { field.Name = "newset"; field.Type = TType.Set; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteSetBegin(new TSet(TType.I32, Newset.Count)); foreach (int? _iter1 in Newset) { oprot.WriteI32(_iter1.Value); } oprot.WriteSetEnd(); } oprot.WriteFieldEnd(); } if (Newmap != null) { field.Name = "newmap"; field.Type = TType.Map; field.ID = 10; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.I32, TType.I32, Newmap.Count)); foreach (int? _iter2 in Newmap.Keys) { oprot.WriteI32(_iter2.Value); oprot.WriteI32(Newmap[_iter2].Value); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } if (Newstring != null) { field.Name = "newstring"; field.Type = TType.String; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteString(Newstring); oprot.WriteFieldEnd(); } if (EndInBoth != null) { field.Name = "end_in_both"; field.Type = TType.I32; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteI32(EndInBoth.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("JavaTestHelper"); oprot.WriteStructBegin(struc); if (ReqInt == null) throw new TProtocolException(TProtocolException.INVALID_DATA, "missing required property 'ReqInt'"); if (ReqObj == null) throw new TProtocolException(TProtocolException.INVALID_DATA, "missing required property 'ReqObj'"); if (ReqBin == null) throw new TProtocolException(TProtocolException.INVALID_DATA, "missing required property 'ReqBin'"); TField field = new TField(); if (ReqInt != null) { field.Name = "req_int"; field.Type = TType.I32; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI32(ReqInt.Value); oprot.WriteFieldEnd(); } if (OptInt != null) { field.Name = "opt_int"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32(OptInt.Value); oprot.WriteFieldEnd(); } if (ReqObj != null) { field.Name = "req_obj"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(ReqObj); oprot.WriteFieldEnd(); } if (OptObj != null) { field.Name = "opt_obj"; field.Type = TType.String; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteString(OptObj); oprot.WriteFieldEnd(); } if (ReqBin != null) { field.Name = "req_bin"; field.Type = TType.String; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBinary(ReqBin); oprot.WriteFieldEnd(); } if (OptBin != null) { field.Name = "opt_bin"; field.Type = TType.String; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBinary(OptBin); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("OneOfEach"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ImTrue != null) { field.Name = "im_true"; field.Type = TType.Bool; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteBool(ImTrue.Value); oprot.WriteFieldEnd(); } if (ImFalse != null) { field.Name = "im_false"; field.Type = TType.Bool; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteBool(ImFalse.Value); oprot.WriteFieldEnd(); } if (ABite != null) { field.Name = "a_bite"; field.Type = TType.Byte; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteByte(ABite.Value); oprot.WriteFieldEnd(); } if (Integer16 != null) { field.Name = "integer16"; field.Type = TType.I16; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI16(Integer16.Value); oprot.WriteFieldEnd(); } if (Integer32 != null) { field.Name = "integer32"; field.Type = TType.I32; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI32(Integer32.Value); oprot.WriteFieldEnd(); } if (Integer64 != null) { field.Name = "integer64"; field.Type = TType.I64; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteI64(Integer64.Value); oprot.WriteFieldEnd(); } if (DoublePrecision != null) { field.Name = "double_precision"; field.Type = TType.Double; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteDouble(DoublePrecision.Value); oprot.WriteFieldEnd(); } if (SomeCharacters != null) { field.Name = "some_characters"; field.Type = TType.String; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteString(SomeCharacters); oprot.WriteFieldEnd(); } if (ZomgUnicode != null) { field.Name = "zomg_unicode"; field.Type = TType.String; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteString(ZomgUnicode); oprot.WriteFieldEnd(); } if (WhatWho != null) { field.Name = "what_who"; field.Type = TType.Bool; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteBool(WhatWho.Value); oprot.WriteFieldEnd(); } if (Base64 != null) { field.Name = "base64"; field.Type = TType.String; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBinary(Base64); oprot.WriteFieldEnd(); } if (ByteList != null) { field.Name = "byte_list"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Byte, ByteList.Count)); foreach (sbyte? _iter0 in ByteList) { oprot.WriteByte(_iter0.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (I16List != null) { field.Name = "i16_list"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I16, I16List.Count)); foreach (short? _iter1 in I16List) { oprot.WriteI16(_iter1.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (I64List != null) { field.Name = "i64_list"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I64, I64List.Count)); foreach (long? _iter2 in I64List) { oprot.WriteI64(_iter2.Value); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("HolyMoley"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Big != null) { field.Name = "big"; field.Type = TType.List; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Big.Count)); foreach (OneOfEach _iter0 in Big) { _iter0.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Contain != null) { field.Name = "contain"; field.Type = TType.Set; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteSetBegin(new TSet(TType.List, Contain.Count)); foreach (List<string> _iter1 in Contain) { { oprot.WriteListBegin(new TList(TType.String, _iter1.Count)); foreach (string _iter2 in _iter1) { oprot.WriteString(_iter2); } oprot.WriteListEnd(); } } oprot.WriteSetEnd(); } oprot.WriteFieldEnd(); } if (Bonks != null) { field.Name = "bonks"; field.Type = TType.Map; field.ID = 3; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.String, TType.List, Bonks.Count)); foreach (string _iter3 in Bonks.Keys) { oprot.WriteString(_iter3); { oprot.WriteListBegin(new TList(TType.Struct, Bonks[_iter3].Count)); foreach (Bonk _iter4 in Bonks[_iter3]) { _iter4.Write(oprot); } oprot.WriteListEnd(); } } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public override void WriteStructBegin(TStruct struc) { }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Xtruct"); oprot.WriteStructBegin(struc); TField field = new TField(); if (StringThing != null) { field.Name = "string_thing"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(StringThing); oprot.WriteFieldEnd(); } if (ByteThing != null) { field.Name = "byte_thing"; field.Type = TType.Byte; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteByte(ByteThing.Value); oprot.WriteFieldEnd(); } if (I32Thing != null) { field.Name = "i32_thing"; field.Type = TType.I32; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteI32(I32Thing.Value); oprot.WriteFieldEnd(); } if (I64Thing != null) { field.Name = "i64_thing"; field.Type = TType.I64; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteI64(I64Thing.Value); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Empty"); oprot.WriteStructBegin(struc); oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("DictionaryMessage"); oprot.WriteStructBegin(struc); TField field = new TField(); if (MIntMap != null) { field.Name = "m_intMap"; field.Type = TType.Map; field.ID = 1; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.I32, TType.I32, MIntMap.Count)); foreach (int? _iter0 in MIntMap.Keys) { oprot.WriteI32(_iter0.Value); oprot.WriteI32(MIntMap[_iter0].Value); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } if (MObMap != null) { field.Name = "m_obMap"; field.Type = TType.Map; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, MObMap.Count)); foreach (string _iter1 in MObMap.Keys) { oprot.WriteString(_iter1); MObMap[_iter1].Write(oprot); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }