本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteListBegin方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteListBegin方法的具体用法?C# TProtocol.WriteListBegin怎么用?C# TProtocol.WriteListBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteListBegin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("get_privilege_set_args");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (HiveObject != null && __isset.hiveObject)
{
field.Name = "hiveObject";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
HiveObject.Write(oprot);
oprot.WriteFieldEnd();
}
if (User_name != null && __isset.user_name)
{
field.Name = "user_name";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(User_name);
oprot.WriteFieldEnd();
}
if (Group_names != null && __isset.group_names)
{
field.Name = "group_names";
field.Type = TType.List;
field.ID = 3;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, Group_names.Count));
foreach (string _iter223 in Group_names)
{
oprot.WriteString(_iter223);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例2: 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)
//.........这里部分代码省略.........
示例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("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();
}
示例5: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("FichaAtividadeColetivaThrift");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "uuidFicha";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(UuidFicha);
oprot.WriteFieldEnd();
if (OutraLocalidade != null && __isset.outraLocalidade) {
field.Name = "outraLocalidade";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteString(OutraLocalidade);
oprot.WriteFieldEnd();
}
if (__isset.inep) {
field.Name = "inep";
field.Type = TType.I64;
field.ID = 7;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Inep);
oprot.WriteFieldEnd();
}
if (__isset.numParticipantes) {
field.Name = "numParticipantes";
field.Type = TType.I32;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteI32(NumParticipantes);
oprot.WriteFieldEnd();
}
if (__isset.numAvaliacoesAlteradas) {
field.Name = "numAvaliacoesAlteradas";
field.Type = TType.I32;
field.ID = 12;
oprot.WriteFieldBegin(field);
oprot.WriteI32(NumAvaliacoesAlteradas);
oprot.WriteFieldEnd();
}
if (Profissionais != null && __isset.profissionais) {
field.Name = "profissionais";
field.Type = TType.List;
field.ID = 13;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Profissionais.Count));
foreach (ProfissionalCboRowItemThrift _iter18 in Profissionais)
{
_iter18.Write(oprot);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (__isset.atividadeTipo) {
field.Name = "atividadeTipo";
field.Type = TType.I64;
field.ID = 14;
oprot.WriteFieldBegin(field);
oprot.WriteI64(AtividadeTipo);
oprot.WriteFieldEnd();
}
if (TemasParaReuniao != null && __isset.temasParaReuniao) {
field.Name = "temasParaReuniao";
field.Type = TType.List;
field.ID = 15;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.I64, TemasParaReuniao.Count));
foreach (long _iter19 in TemasParaReuniao)
{
oprot.WriteI64(_iter19);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (PublicoAlvo != null && __isset.publicoAlvo) {
field.Name = "publicoAlvo";
field.Type = TType.List;
field.ID = 16;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.I64, PublicoAlvo.Count));
foreach (long _iter20 in PublicoAlvo)
{
oprot.WriteI64(_iter20);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (Participantes != null && __isset.participantes) {
field.Name = "participantes";
field.Type = TType.List;
field.ID = 18;
oprot.WriteFieldBegin(field);
//.........这里部分代码省略.........
示例6: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("NoteEmailParameters");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.guid != null && __isset.guid) {
field.Name = "guid";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.guid);
oprot.WriteFieldEnd();
}
if (this.note != null && __isset.note) {
field.Name = "note";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
this.note.Write(oprot);
oprot.WriteFieldEnd();
}
if (this.toAddresses != null && __isset.toAddresses) {
field.Name = "toAddresses";
field.Type = TType.List;
field.ID = 3;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, this.toAddresses.Count));
foreach (string _iter101 in this.toAddresses)
{
oprot.WriteString(_iter101);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.ccAddresses != null && __isset.ccAddresses) {
field.Name = "ccAddresses";
field.Type = TType.List;
field.ID = 4;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, this.ccAddresses.Count));
foreach (string _iter102 in this.ccAddresses)
{
oprot.WriteString(_iter102);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.subject != null && __isset.subject) {
field.Name = "subject";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.subject);
oprot.WriteFieldEnd();
}
if (this.message != null && __isset.message) {
field.Name = "message";
field.Type = TType.String;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteString(this.message);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例7: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SyncChunk");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.currentTime) {
field.Name = "currentTime";
field.Type = TType.I64;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI64(CurrentTime);
oprot.WriteFieldEnd();
}
if (__isset.chunkHighUSN) {
field.Name = "chunkHighUSN";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(ChunkHighUSN);
oprot.WriteFieldEnd();
}
if (__isset.updateCount) {
field.Name = "updateCount";
field.Type = TType.I32;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI32(UpdateCount);
oprot.WriteFieldEnd();
}
if (Notes != null && __isset.notes) {
field.Name = "notes";
field.Type = TType.List;
field.ID = 4;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Notes.Count));
foreach (Evernote.EDAM.Type.Note _iter33 in Notes)
{
_iter33.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (Notebooks != null && __isset.notebooks) {
field.Name = "notebooks";
field.Type = TType.List;
field.ID = 5;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Notebooks.Count));
foreach (Evernote.EDAM.Type.Notebook _iter34 in Notebooks)
{
_iter34.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (Tags != null && __isset.tags) {
field.Name = "tags";
field.Type = TType.List;
field.ID = 6;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Tags.Count));
foreach (Evernote.EDAM.Type.Tag _iter35 in Tags)
{
_iter35.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (Searches != null && __isset.searches) {
field.Name = "searches";
field.Type = TType.List;
field.ID = 7;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Searches.Count));
foreach (Evernote.EDAM.Type.SavedSearch _iter36 in Searches)
{
_iter36.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (Resources != null && __isset.resources) {
field.Name = "resources";
field.Type = TType.List;
field.ID = 8;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Resources.Count));
foreach (Evernote.EDAM.Type.Resource _iter37 in Resources)
{
_iter37.Write(oprot);
oprot.WriteListEnd();
}
//.........这里部分代码省略.........
示例8: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("EndItem");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.Ack) {
field.Name = "Ack";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Ack);
oprot.WriteFieldEnd();
}
if (EbayTokenID != null && __isset.EbayTokenID) {
field.Name = "EbayTokenID";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(EbayTokenID);
oprot.WriteFieldEnd();
}
if (InventoryID != null && __isset.InventoryID) {
field.Name = "InventoryID";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(InventoryID);
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 (Messages != null && __isset.Messages) {
field.Name = "Messages";
field.Type = TType.List;
field.ID = 5;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Map, Messages.Count));
foreach (Dictionary<string, string> _iter79 in Messages)
{
{
oprot.WriteMapBegin(new TMap(TType.String, TType.String, _iter79.Count));
foreach (string _iter80 in _iter79.Keys)
{
oprot.WriteString(_iter80);
oprot.WriteString(_iter79[_iter80]);
}
oprot.WriteMapEnd();
}
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例9: 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();
}
示例10: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("SyncChunk");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.currentTime) {
field.Name = "currentTime";
field.Type = TType.I64;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI64(this.currentTime);
oprot.WriteFieldEnd();
}
if (__isset.chunkHighUSN) {
field.Name = "chunkHighUSN";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(this.chunkHighUSN);
oprot.WriteFieldEnd();
}
if (__isset.updateCount) {
field.Name = "updateCount";
field.Type = TType.I32;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI32(this.updateCount);
oprot.WriteFieldEnd();
}
if (this.notes != null && __isset.notes) {
field.Name = "notes";
field.Type = TType.List;
field.ID = 4;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.notes.Count));
foreach (Evernote.EDAM.Type.Note _iter27 in this.notes)
{
_iter27.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.notebooks != null && __isset.notebooks) {
field.Name = "notebooks";
field.Type = TType.List;
field.ID = 5;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.notebooks.Count));
foreach (Evernote.EDAM.Type.Notebook _iter28 in this.notebooks)
{
_iter28.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.tags != null && __isset.tags) {
field.Name = "tags";
field.Type = TType.List;
field.ID = 6;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.tags.Count));
foreach (Evernote.EDAM.Type.Tag _iter29 in this.tags)
{
_iter29.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.searches != null && __isset.searches) {
field.Name = "searches";
field.Type = TType.List;
field.ID = 7;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.searches.Count));
foreach (Evernote.EDAM.Type.SavedSearch _iter30 in this.searches)
{
_iter30.Write(oprot);
oprot.WriteListEnd();
}
}
oprot.WriteFieldEnd();
}
if (this.resources != null && __isset.resources) {
field.Name = "resources";
field.Type = TType.List;
field.ID = 8;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, this.resources.Count));
foreach (Evernote.EDAM.Type.Resource _iter31 in this.resources)
{
_iter31.Write(oprot);
oprot.WriteListEnd();
//.........这里部分代码省略.........
示例11: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("TeamInfo");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (ListHeroUuid != null && __isset.listHeroUuid) {
field.Name = "listHeroUuid";
field.Type = TType.List;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.I64, ListHeroUuid.Count));
foreach (long _iter20 in ListHeroUuid)
{
oprot.WriteI64(_iter20);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例12: 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) {
//.........这里部分代码省略.........
示例13: 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();
}
示例14: 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();
}
示例15: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("BatchMutation");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Row != null && __isset.row) {
field.Name = "row";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Row);
oprot.WriteFieldEnd();
}
if (Mutations != null && __isset.mutations) {
field.Name = "mutations";
field.Type = TType.List;
field.ID = 2;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Mutations.Count));
foreach (Mutation _iter3 in Mutations)
{
_iter3.Write(oprot);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}