public void Write(TProtocol oprot) { TStruct struc = new TStruct("ColumnOrSuperColumn"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Column != null && __isset.column) { field.Name = "column"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Column.Write(oprot); oprot.WriteFieldEnd(); } if (Super_column != null && __isset.super_column) { field.Name = "super_column"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Super_column.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("ColumnOrSuperColumn"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Column != null && __isset.column) { field.Name = "column"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Column.Write(oprot); oprot.WriteFieldEnd(); } if (Super_column != null && __isset.super_column) { field.Name = "super_column"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Super_column.Write(oprot); oprot.WriteFieldEnd(); } if (Counter_column != null && __isset.counter_column) { field.Name = "counter_column"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); Counter_column.Write(oprot); oprot.WriteFieldEnd(); } if (Counter_super_column != null && __isset.counter_super_column) { field.Name = "counter_super_column"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); Counter_super_column.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }