public Write ( |
||
oprot | ||
return | void |
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Notebook"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Guid != null && __isset.guid) { field.Name = "guid"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Guid); oprot.WriteFieldEnd(); } if (Name != null && __isset.name) { field.Name = "name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (__isset.updateSequenceNum) { field.Name = "updateSequenceNum"; field.Type = TType.I32; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI32(UpdateSequenceNum); oprot.WriteFieldEnd(); } if (__isset.defaultNotebook) { field.Name = "defaultNotebook"; field.Type = TType.Bool; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBool(DefaultNotebook); oprot.WriteFieldEnd(); } if (__isset.serviceCreated) { field.Name = "serviceCreated"; field.Type = TType.I64; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceCreated); oprot.WriteFieldEnd(); } if (__isset.serviceUpdated) { field.Name = "serviceUpdated"; field.Type = TType.I64; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceUpdated); oprot.WriteFieldEnd(); } if (Publishing != null && __isset.publishing) { field.Name = "publishing"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); Publishing.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.published) { field.Name = "published"; field.Type = TType.Bool; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBool(Published); oprot.WriteFieldEnd(); } if (Stack != null && __isset.stack) { field.Name = "stack"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(Stack); oprot.WriteFieldEnd(); } if (SharedNotebookIds != null && __isset.sharedNotebookIds) { field.Name = "sharedNotebookIds"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I64, SharedNotebookIds.Count)); foreach (long _iter32 in SharedNotebookIds) { oprot.WriteI64(_iter32); oprot.WriteListEnd(); } } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("Notebook"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Guid != null && __isset.guid) { field.Name = "guid"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Guid); oprot.WriteFieldEnd(); } if (Name != null && __isset.name) { field.Name = "name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (__isset.updateSequenceNum) { field.Name = "updateSequenceNum"; field.Type = TType.I32; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI32(UpdateSequenceNum); oprot.WriteFieldEnd(); } if (__isset.defaultNotebook) { field.Name = "defaultNotebook"; field.Type = TType.Bool; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBool(DefaultNotebook); oprot.WriteFieldEnd(); } if (__isset.serviceCreated) { field.Name = "serviceCreated"; field.Type = TType.I64; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceCreated); oprot.WriteFieldEnd(); } if (__isset.serviceUpdated) { field.Name = "serviceUpdated"; field.Type = TType.I64; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceUpdated); oprot.WriteFieldEnd(); } if (Publishing != null && __isset.publishing) { field.Name = "publishing"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); Publishing.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.published) { field.Name = "published"; field.Type = TType.Bool; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBool(Published); oprot.WriteFieldEnd(); } if (Stack != null && __isset.stack) { field.Name = "stack"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(Stack); oprot.WriteFieldEnd(); } if (SharedNotebookIds != null && __isset.sharedNotebookIds) { field.Name = "sharedNotebookIds"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I64, SharedNotebookIds.Count)); foreach (long _iter44 in SharedNotebookIds) { oprot.WriteI64(_iter44); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (SharedNotebooks != null && __isset.sharedNotebooks) { field.Name = "sharedNotebooks"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SharedNotebooks.Count)); foreach (SharedNotebook _iter45 in SharedNotebooks) { _iter45.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (BusinessNotebook != null && __isset.businessNotebook) { field.Name = "businessNotebook"; field.Type = TType.Struct; field.ID = 15; oprot.WriteFieldBegin(field); BusinessNotebook.Write(oprot); oprot.WriteFieldEnd(); } if (Contact != null && __isset.contact) { field.Name = "contact"; field.Type = TType.Struct; field.ID = 16; oprot.WriteFieldBegin(field); Contact.Write(oprot); oprot.WriteFieldEnd(); } if (Restrictions != null && __isset.restrictions) { field.Name = "restrictions"; field.Type = TType.Struct; field.ID = 17; oprot.WriteFieldBegin(field); Restrictions.Write(oprot); oprot.WriteFieldEnd(); } if (RecipientSettings != null && __isset.recipientSettings) { field.Name = "recipientSettings"; field.Type = TType.Struct; field.ID = 18; oprot.WriteFieldBegin(field); RecipientSettings.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }