public void Write(TProtocol oprot) {
TStruct struc = new TStruct("NoteAttributes");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.subjectDate) {
field.Name = "subjectDate";
field.Type = TType.I64;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI64(SubjectDate);
oprot.WriteFieldEnd();
}
if (__isset.latitude) {
field.Name = "latitude";
field.Type = TType.Double;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Latitude);
oprot.WriteFieldEnd();
}
if (__isset.longitude) {
field.Name = "longitude";
field.Type = TType.Double;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Longitude);
oprot.WriteFieldEnd();
}
if (__isset.altitude) {
field.Name = "altitude";
field.Type = TType.Double;
field.ID = 12;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Altitude);
oprot.WriteFieldEnd();
}
if (Author != null && __isset.author) {
field.Name = "author";
field.Type = TType.String;
field.ID = 13;
oprot.WriteFieldBegin(field);
oprot.WriteString(Author);
oprot.WriteFieldEnd();
}
if (Source != null && __isset.source) {
field.Name = "source";
field.Type = TType.String;
field.ID = 14;
oprot.WriteFieldBegin(field);
oprot.WriteString(Source);
oprot.WriteFieldEnd();
}
if (SourceURL != null && __isset.sourceURL) {
field.Name = "sourceURL";
field.Type = TType.String;
field.ID = 15;
oprot.WriteFieldBegin(field);
oprot.WriteString(SourceURL);
oprot.WriteFieldEnd();
}
if (SourceApplication != null && __isset.sourceApplication) {
field.Name = "sourceApplication";
field.Type = TType.String;
field.ID = 16;
oprot.WriteFieldBegin(field);
oprot.WriteString(SourceApplication);
oprot.WriteFieldEnd();
}
if (__isset.shareDate) {
field.Name = "shareDate";
field.Type = TType.I64;
field.ID = 17;
oprot.WriteFieldBegin(field);
oprot.WriteI64(ShareDate);
oprot.WriteFieldEnd();
}
if (PlaceName != null && __isset.placeName) {
field.Name = "placeName";
field.Type = TType.String;
field.ID = 21;
oprot.WriteFieldBegin(field);
oprot.WriteString(PlaceName);
oprot.WriteFieldEnd();
}
if (ContentClass != null && __isset.contentClass) {
field.Name = "contentClass";
field.Type = TType.String;
field.ID = 22;
oprot.WriteFieldBegin(field);
oprot.WriteString(ContentClass);
oprot.WriteFieldEnd();
}
if (ApplicationData != null && __isset.applicationData) {
field.Name = "applicationData";
field.Type = TType.Struct;
field.ID = 23;
oprot.WriteFieldBegin(field);
ApplicationData.Write(oprot);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}