本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteI32方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteI32方法的具体用法?C# TProtocol.WriteI32怎么用?C# TProtocol.WriteI32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteI32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("IndexStatusResponse");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "Status";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Status);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例2: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("NoteMetadata");
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 (Title != null && __isset.title) {
field.Name = "title";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(Title);
oprot.WriteFieldEnd();
}
if (__isset.contentLength) {
field.Name = "contentLength";
field.Type = TType.I32;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteI32(ContentLength);
oprot.WriteFieldEnd();
}
if (__isset.created) {
field.Name = "created";
field.Type = TType.I64;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Created);
oprot.WriteFieldEnd();
}
if (__isset.updated) {
field.Name = "updated";
field.Type = TType.I64;
field.ID = 7;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Updated);
oprot.WriteFieldEnd();
}
if (__isset.deleted) {
field.Name = "deleted";
field.Type = TType.I64;
field.ID = 8;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Deleted);
oprot.WriteFieldEnd();
}
if (__isset.updateSequenceNum) {
field.Name = "updateSequenceNum";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(UpdateSequenceNum);
oprot.WriteFieldEnd();
}
if (NotebookGuid != null && __isset.notebookGuid) {
field.Name = "notebookGuid";
field.Type = TType.String;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteString(NotebookGuid);
oprot.WriteFieldEnd();
}
if (TagGuids != null && __isset.tagGuids) {
field.Name = "tagGuids";
field.Type = TType.List;
field.ID = 12;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, TagGuids.Count));
foreach (string _iter63 in TagGuids)
{
oprot.WriteString(_iter63);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (Attributes != null && __isset.attributes) {
field.Name = "attributes";
field.Type = TType.Struct;
field.ID = 14;
oprot.WriteFieldBegin(field);
Attributes.Write(oprot);
oprot.WriteFieldEnd();
}
if (LargestResourceMime != null && __isset.largestResourceMime) {
field.Name = "largestResourceMime";
field.Type = TType.String;
field.ID = 20;
oprot.WriteFieldBegin(field);
oprot.WriteString(LargestResourceMime);
oprot.WriteFieldEnd();
}
if (__isset.largestResourceSize) {
//.........这里部分代码省略.........
示例3: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("SuggestedCategoriesCategoryMap");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.CategoryID) {
field.Name = "CategoryID";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32(CategoryID);
oprot.WriteFieldEnd();
}
if (CategoryName != null && __isset.CategoryName) {
field.Name = "CategoryName";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(CategoryName);
oprot.WriteFieldEnd();
}
if (CategoryParentID != null && __isset.CategoryParentID) {
field.Name = "CategoryParentID";
field.Type = TType.List;
field.ID = 3;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.I32, CategoryParentID.Count));
foreach (int _iter38 in CategoryParentID)
{
oprot.WriteI32(_iter38);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (CategoryParentName != null && __isset.CategoryParentName) {
field.Name = "CategoryParentName";
field.Type = TType.List;
field.ID = 4;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, CategoryParentName.Count));
foreach (string _iter39 in CategoryParentName)
{
oprot.WriteString(_iter39);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例4: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("get_slice_super_args");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.tablename != null) {
field.Name = "tablename";
field.Type = TType.String;
field.ID = -1;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.tablename);
oprot.WriteFieldEnd();
}
if (this.key != null) {
field.Name = "key";
field.Type = TType.String;
field.ID = -2;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.key);
oprot.WriteFieldEnd();
}
if (this.columnFamily_superColumnName != null) {
field.Name = "columnFamily_superColumnName";
field.Type = TType.String;
field.ID = -3;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.columnFamily_superColumnName);
oprot.WriteFieldEnd();
}
field.Name = "start";
field.Type = TType.I32;
field.ID = -4;
oprot.WriteFieldBegin(field);
oprot.WriteI32(this.start);
oprot.WriteFieldEnd();
field.Name = "count";
field.Type = TType.I32;
field.ID = -5;
oprot.WriteFieldBegin(field);
oprot.WriteI32(this.count);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例5: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("Note");
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 (Title != null && __isset.title) {
field.Name = "title";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(Title);
oprot.WriteFieldEnd();
}
if (Content != null && __isset.content) {
field.Name = "content";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Content);
oprot.WriteFieldEnd();
}
if (ContentHash != null && __isset.contentHash) {
field.Name = "contentHash";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(ContentHash);
oprot.WriteFieldEnd();
}
if (__isset.contentLength) {
field.Name = "contentLength";
field.Type = TType.I32;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteI32(ContentLength);
oprot.WriteFieldEnd();
}
if (__isset.created) {
field.Name = "created";
field.Type = TType.I64;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Created);
oprot.WriteFieldEnd();
}
if (__isset.updated) {
field.Name = "updated";
field.Type = TType.I64;
field.ID = 7;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Updated);
oprot.WriteFieldEnd();
}
if (__isset.deleted) {
field.Name = "deleted";
field.Type = TType.I64;
field.ID = 8;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Deleted);
oprot.WriteFieldEnd();
}
if (__isset.active) {
field.Name = "active";
field.Type = TType.Bool;
field.ID = 9;
oprot.WriteFieldBegin(field);
oprot.WriteBool(Active);
oprot.WriteFieldEnd();
}
if (__isset.updateSequenceNum) {
field.Name = "updateSequenceNum";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(UpdateSequenceNum);
oprot.WriteFieldEnd();
}
if (NotebookGuid != null && __isset.notebookGuid) {
field.Name = "notebookGuid";
field.Type = TType.String;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteString(NotebookGuid);
oprot.WriteFieldEnd();
}
if (TagGuids != null && __isset.tagGuids) {
field.Name = "tagGuids";
field.Type = TType.List;
field.ID = 12;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, TagGuids.Count));
foreach (string _iter26 in TagGuids)
//.........这里部分代码省略.........
示例6: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CfDef");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Keyspace != null && __isset.keyspace) {
field.Name = "keyspace";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Keyspace);
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 (Column_type != null && __isset.column_type) {
field.Name = "column_type";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Column_type);
oprot.WriteFieldEnd();
}
if (Comparator_type != null && __isset.comparator_type) {
field.Name = "comparator_type";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteString(Comparator_type);
oprot.WriteFieldEnd();
}
if (Subcomparator_type != null && __isset.subcomparator_type) {
field.Name = "subcomparator_type";
field.Type = TType.String;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteString(Subcomparator_type);
oprot.WriteFieldEnd();
}
if (Comment != null && __isset.comment) {
field.Name = "comment";
field.Type = TType.String;
field.ID = 8;
oprot.WriteFieldBegin(field);
oprot.WriteString(Comment);
oprot.WriteFieldEnd();
}
if (__isset.row_cache_size) {
field.Name = "row_cache_size";
field.Type = TType.Double;
field.ID = 9;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Row_cache_size);
oprot.WriteFieldEnd();
}
if (__isset.key_cache_size) {
field.Name = "key_cache_size";
field.Type = TType.Double;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Key_cache_size);
oprot.WriteFieldEnd();
}
if (__isset.read_repair_chance) {
field.Name = "read_repair_chance";
field.Type = TType.Double;
field.ID = 12;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Read_repair_chance);
oprot.WriteFieldEnd();
}
if (Column_metadata != null && __isset.column_metadata) {
field.Name = "column_metadata";
field.Type = TType.List;
field.ID = 13;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Column_metadata.Count));
foreach (ColumnDef _iter57 in Column_metadata)
{
_iter57.Write(oprot);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (__isset.gc_grace_seconds) {
field.Name = "gc_grace_seconds";
field.Type = TType.I32;
field.ID = 14;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Gc_grace_seconds);
oprot.WriteFieldEnd();
}
if (Default_validation_class != null && __isset.default_validation_class) {
//.........这里部分代码省略.........
示例7: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("NoteCollectionCounts");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (NotebookCounts != null && __isset.notebookCounts) {
field.Name = "notebookCounts";
field.Type = TType.Map;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.String, TType.I32, NotebookCounts.Count));
foreach (string _iter84 in NotebookCounts.Keys)
{
oprot.WriteString(_iter84);
oprot.WriteI32(NotebookCounts[_iter84]);
oprot.WriteMapEnd();
}
}
oprot.WriteFieldEnd();
}
if (TagCounts != null && __isset.tagCounts) {
field.Name = "tagCounts";
field.Type = TType.Map;
field.ID = 2;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.String, TType.I32, TagCounts.Count));
foreach (string _iter85 in TagCounts.Keys)
{
oprot.WriteString(_iter85);
oprot.WriteI32(TagCounts[_iter85]);
oprot.WriteMapEnd();
}
}
oprot.WriteFieldEnd();
}
if (__isset.trashCount) {
field.Name = "trashCount";
field.Type = TType.I32;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI32(TrashCount);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例8: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("multiget_slice_args");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Keys != null && __isset.keys) {
field.Name = "keys";
field.Type = TType.List;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, Keys.Count));
foreach (byte[] _iter90 in Keys)
{
oprot.WriteBinary(_iter90);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (Column_parent != null && __isset.column_parent) {
field.Name = "column_parent";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
Column_parent.Write(oprot);
oprot.WriteFieldEnd();
}
if (Predicate != null && __isset.predicate) {
field.Name = "predicate";
field.Type = TType.Struct;
field.ID = 3;
oprot.WriteFieldBegin(field);
Predicate.Write(oprot);
oprot.WriteFieldEnd();
}
if (__isset.consistency_level) {
field.Name = "consistency_level";
field.Type = TType.I32;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Consistency_level);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例9: Write
//.........这里部分代码省略.........
}
if (__isset.noExpungeNotebook) {
field.Name = "noExpungeNotebook";
field.Type = TType.Bool;
field.ID = 9;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoExpungeNotebook);
oprot.WriteFieldEnd();
}
if (__isset.noSetDefaultNotebook) {
field.Name = "noSetDefaultNotebook";
field.Type = TType.Bool;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoSetDefaultNotebook);
oprot.WriteFieldEnd();
}
if (__isset.noSetNotebookStack) {
field.Name = "noSetNotebookStack";
field.Type = TType.Bool;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoSetNotebookStack);
oprot.WriteFieldEnd();
}
if (__isset.noPublishToPublic) {
field.Name = "noPublishToPublic";
field.Type = TType.Bool;
field.ID = 12;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoPublishToPublic);
oprot.WriteFieldEnd();
}
if (__isset.noPublishToBusinessLibrary) {
field.Name = "noPublishToBusinessLibrary";
field.Type = TType.Bool;
field.ID = 13;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoPublishToBusinessLibrary);
oprot.WriteFieldEnd();
}
if (__isset.noCreateTags) {
field.Name = "noCreateTags";
field.Type = TType.Bool;
field.ID = 14;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoCreateTags);
oprot.WriteFieldEnd();
}
if (__isset.noUpdateTags) {
field.Name = "noUpdateTags";
field.Type = TType.Bool;
field.ID = 15;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoUpdateTags);
oprot.WriteFieldEnd();
}
if (__isset.noExpungeTags) {
field.Name = "noExpungeTags";
field.Type = TType.Bool;
field.ID = 16;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoExpungeTags);
oprot.WriteFieldEnd();
}
if (__isset.noSetParentTag) {
field.Name = "noSetParentTag";
field.Type = TType.Bool;
field.ID = 17;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoSetParentTag);
oprot.WriteFieldEnd();
}
if (__isset.noCreateSharedNotebooks) {
field.Name = "noCreateSharedNotebooks";
field.Type = TType.Bool;
field.ID = 18;
oprot.WriteFieldBegin(field);
oprot.WriteBool(NoCreateSharedNotebooks);
oprot.WriteFieldEnd();
}
if (__isset.updateWhichSharedNotebookRestrictions) {
field.Name = "updateWhichSharedNotebookRestrictions";
field.Type = TType.I32;
field.ID = 19;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)UpdateWhichSharedNotebookRestrictions);
oprot.WriteFieldEnd();
}
if (__isset.expungeWhichSharedNotebookRestrictions) {
field.Name = "expungeWhichSharedNotebookRestrictions";
field.Type = TType.I32;
field.ID = 20;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)ExpungeWhichSharedNotebookRestrictions);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例10: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCBeginLoadStageMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (HeroGroup1List != null && __isset.heroGroup1List) {
field.Name = "heroGroup1List";
field.Type = TType.Map;
field.ID = 10;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup1List.Count));
foreach (int _iter29 in HeroGroup1List.Keys)
{
oprot.WriteI32(_iter29);
{
oprot.WriteListBegin(new TList(TType.I64, HeroGroup1List[_iter29].Count));
foreach (long _iter30 in HeroGroup1List[_iter29])
{
oprot.WriteI64(_iter30);
}
oprot.WriteListEnd();
}
}
oprot.WriteMapEnd();
}
oprot.WriteFieldEnd();
}
if (HeroGroup2List != null && __isset.heroGroup2List) {
field.Name = "heroGroup2List";
field.Type = TType.Map;
field.ID = 20;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup2List.Count));
foreach (int _iter31 in HeroGroup2List.Keys)
{
oprot.WriteI32(_iter31);
{
oprot.WriteListBegin(new TList(TType.I64, HeroGroup2List[_iter31].Count));
foreach (long _iter32 in HeroGroup2List[_iter31])
{
oprot.WriteI64(_iter32);
}
oprot.WriteListEnd();
}
}
oprot.WriteMapEnd();
}
oprot.WriteFieldEnd();
}
if (HeroGroup3List != null && __isset.heroGroup3List) {
field.Name = "heroGroup3List";
field.Type = TType.Map;
field.ID = 30;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup3List.Count));
foreach (int _iter33 in HeroGroup3List.Keys)
{
oprot.WriteI32(_iter33);
{
oprot.WriteListBegin(new TList(TType.I64, HeroGroup3List[_iter33].Count));
foreach (long _iter34 in HeroGroup3List[_iter33])
{
oprot.WriteI64(_iter34);
}
oprot.WriteListEnd();
}
}
oprot.WriteMapEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例11: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSQueryMailListMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.lastMailCreateTime) {
field.Name = "lastMailCreateTime";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(LastMailCreateTime);
oprot.WriteFieldEnd();
}
if (__isset.size) {
field.Name = "size";
field.Type = TType.I16;
field.ID = 20;
oprot.WriteFieldBegin(field);
oprot.WriteI16(Size);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例12: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("GeteBayOrderRequest");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (EbayTokenID != null && __isset.EbayTokenID) {
field.Name = "EbayTokenID";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(EbayTokenID);
oprot.WriteFieldEnd();
}
if (__isset.SiteID) {
field.Name = "SiteID";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(SiteID);
oprot.WriteFieldEnd();
}
if (OrderID != null && __isset.OrderID) {
field.Name = "OrderID";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(OrderID);
oprot.WriteFieldEnd();
}
if (ItemID != null && __isset.ItemID) {
field.Name = "ItemID";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteString(ItemID);
oprot.WriteFieldEnd();
}
if (TransactionID != null && __isset.TransactionID) {
field.Name = "TransactionID";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteString(TransactionID);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例13: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("IndexClause");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.expressions != null && __isset.expressions) {
field.Name = "expressions";
field.Type = TType.List;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.expressions.Count));
foreach (IndexExpression _iter11 in this.expressions)
{
_iter11.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.start_key != null && __isset.start_key) {
field.Name = "start_key";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(this.start_key);
oprot.WriteFieldEnd();
}
if (__isset.count) {
field.Name = "count";
field.Type = TType.I32;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI32(this.count);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例14: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("KeyRange");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Start_key != null && __isset.start_key) {
field.Name = "start_key";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Start_key);
oprot.WriteFieldEnd();
}
if (End_key != null && __isset.end_key) {
field.Name = "end_key";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(End_key);
oprot.WriteFieldEnd();
}
if (Start_token != null && __isset.start_token) {
field.Name = "start_token";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Start_token);
oprot.WriteFieldEnd();
}
if (End_token != null && __isset.end_token) {
field.Name = "end_token";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteString(End_token);
oprot.WriteFieldEnd();
}
if (__isset.count) {
field.Name = "count";
field.Type = TType.I32;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Count);
oprot.WriteFieldEnd();
}
if (Row_filter != null && __isset.row_filter) {
field.Name = "row_filter";
field.Type = TType.List;
field.ID = 6;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Row_filter.Count));
foreach (IndexExpression _iter19 in Row_filter)
{
_iter19.Write(oprot);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例15: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("ArmyMemberInfo");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.charId) {
field.Name = "charId";
field.Type = TType.I32;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteI32(CharId);
oprot.WriteFieldEnd();
}
if (Name != null && __isset.name) {
field.Name = "name";
field.Type = TType.String;
field.ID = 20;
oprot.WriteFieldBegin(field);
oprot.WriteString(Name);
oprot.WriteFieldEnd();
}
if (__isset.professionId) {
field.Name = "professionId";
field.Type = TType.I32;
field.ID = 30;
oprot.WriteFieldBegin(field);
oprot.WriteI32(ProfessionId);
oprot.WriteFieldEnd();
}
if (__isset.level) {
field.Name = "level";
field.Type = TType.I16;
field.ID = 40;
oprot.WriteFieldBegin(field);
oprot.WriteI16(Level);
oprot.WriteFieldEnd();
}
if (__isset.role) {
field.Name = "role";
field.Type = TType.Byte;
field.ID = 50;
oprot.WriteFieldBegin(field);
oprot.WriteByte(Role);
oprot.WriteFieldEnd();
}
if (__isset.joinTime) {
field.Name = "joinTime";
field.Type = TType.I32;
field.ID = 60;
oprot.WriteFieldBegin(field);
oprot.WriteI32(JoinTime);
oprot.WriteFieldEnd();
}
if (__isset.lastOfflineTime) {
field.Name = "lastOfflineTime";
field.Type = TType.I32;
field.ID = 70;
oprot.WriteFieldBegin(field);
oprot.WriteI32(LastOfflineTime);
oprot.WriteFieldEnd();
}
if (__isset.online) {
field.Name = "online";
field.Type = TType.Bool;
field.ID = 100;
oprot.WriteFieldBegin(field);
oprot.WriteBool(Online);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}