本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteFieldEnd方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteFieldEnd方法的具体用法?C# TProtocol.WriteFieldEnd怎么用?C# TProtocol.WriteFieldEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteFieldEnd方法的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("AlreadyAliveException");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "msg";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Msg);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例3: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("LSSupervisorId");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "supervisor_id";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Supervisor_id);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例4: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("InvalidRequestException");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "why";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Why);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例5: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCChatResultMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "result";
field.Type = TType.Byte;
field.ID = 10;
oprot.WriteFieldBegin(field);
oprot.WriteByte(Result);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例6: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CSChatSettingMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "chatSetting";
field.Type = TType.Struct;
field.ID = 10;
oprot.WriteFieldBegin(field);
ChatSetting.Write(oprot);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例7: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("SCSystemInfoMsg");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "systemInfo";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
SystemInfo.Write(oprot);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例8: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("QueueRequest");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Data != null && __isset.data) {
field.Name = "data";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Data);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例9: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("AuthenticationRequest");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Credentials != null && __isset.credentials) {
field.Name = "credentials";
field.Type = TType.Map;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.String, TType.String, Credentials.Count));
foreach (string _iter32 in Credentials.Keys)
{
oprot.WriteString(_iter32);
oprot.WriteString(Credentials[_iter32]);
}
oprot.WriteMapEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例10: 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();
}
示例11: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("batch_insert_superColumn_blocking_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.success) {
field.Name = "success";
field.Type = TType.Bool;
field.ID = 0;
oprot.WriteFieldBegin(field);
oprot.WriteBool(this.success);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例12: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("set_keyspace_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.ire) {
if (Ire != null) {
field.Name = "Ire";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
Ire.Write(oprot);
oprot.WriteFieldEnd();
}
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例13: 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)
//.........这里部分代码省略.........
示例14: Write
public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("CounterColumn");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Name != null && __isset.name) {
field.Name = "name";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Name);
oprot.WriteFieldEnd();
}
if (__isset.value) {
field.Name = "value";
field.Type = TType.I64;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Value);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例15: 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();
}