WriteSetEnd() public abstract method

public abstract WriteSetEnd ( ) : void
return void
コード例 #1
0
ファイル: NodeInfo.cs プロジェクト: bcardi/storm-net-adapter
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NodeInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "node";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Node);
   oprot.WriteFieldEnd();
   field.Name = "port";
   field.Type = TType.Set;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteSetBegin(new TSet(TType.I64, Port.Count));
     foreach (long _iter184 in Port)
     {
       oprot.WriteI64(_iter184);
     }
     oprot.WriteSetEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #2
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("getProximityMatchCandidates_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.Set;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            {
              oprot.WriteSetBegin(new TSet(TType.Struct, Success.Count));
              foreach (Contact _iter313 in Success)
              {
                _iter313.Write(oprot);
              }
              oprot.WriteSetEnd();
            }
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.e) {
          if (E != null) {
            field.Name = "E";
            field.Type = TType.Struct;
            field.ID = 1;
            oprot.WriteFieldBegin(field);
            E.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #3
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LazyMap");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (KeysOnly != null && __isset.keysOnly) {
     field.Name = "keysOnly";
     field.Type = TType.Set;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, KeysOnly.Count));
       foreach (string _iter15 in KeysOnly)
       {
         oprot.WriteString(_iter15);
         oprot.WriteSetEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (FullMap != null && __isset.fullMap) {
     field.Name = "fullMap";
     field.Type = TType.Map;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, FullMap.Count));
       foreach (string _iter16 in FullMap.Keys)
       {
         oprot.WriteString(_iter16);
         oprot.WriteString(FullMap[_iter16]);
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #4
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("findContactsByEmail_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Emails != null && __isset.emails) {
     field.Name = "emails";
     field.Type = TType.Set;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, Emails.Count));
       foreach (string _iter207 in Emails)
       {
         oprot.WriteString(_iter207);
       }
       oprot.WriteSetEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #5
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("findContactsByPhone_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Phones != null && __isset.phones) {
     field.Name = "phones";
     field.Type = TType.Set;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, Phones.Count));
       foreach (string _iter216 in Phones)
       {
         oprot.WriteString(_iter216);
       }
       oprot.WriteSetEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #6
0
 public override void WriteSetEnd()
 {
     WrappedProtocol.WriteSetEnd();
 }
コード例 #7
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("acceptProximityMatches_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (SessionId != null && __isset.sessionId) {
     field.Name = "sessionId";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SessionId);
     oprot.WriteFieldEnd();
   }
   if (Ids != null && __isset.ids) {
     field.Name = "ids";
     field.Type = TType.Set;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, Ids.Count));
       foreach (string _iter108 in Ids)
       {
         oprot.WriteString(_iter108);
       }
       oprot.WriteSetEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #8
0
ファイル: BaseMsg.cs プロジェクト: wsycarlos/ARIA
 public void Write(TProtocol oprot) {
   oprot.IncrementRecursionDepth();
   try
   {
     TStruct struc = new TStruct("BaseMsg");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     field.Name = "msgType";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)MsgType);
     oprot.WriteFieldEnd();
     if (__isset.boolVal) {
       field.Name = "boolVal";
       field.Type = TType.Bool;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       oprot.WriteBool(BoolVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.byteVal) {
       field.Name = "byteVal";
       field.Type = TType.Byte;
       field.ID = 3;
       oprot.WriteFieldBegin(field);
       oprot.WriteByte(ByteVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.intVal) {
       field.Name = "intVal";
       field.Type = TType.I32;
       field.ID = 4;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32(IntVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.doubleVal) {
       field.Name = "doubleVal";
       field.Type = TType.Double;
       field.ID = 5;
       oprot.WriteFieldBegin(field);
       oprot.WriteDouble(DoubleVal);
       oprot.WriteFieldEnd();
     }
     if (StrVal != null && __isset.strVal) {
       field.Name = "strVal";
       field.Type = TType.String;
       field.ID = 6;
       oprot.WriteFieldBegin(field);
       oprot.WriteString(StrVal);
       oprot.WriteFieldEnd();
     }
     if (ByteArrVal != null && __isset.byteArrVal) {
       field.Name = "byteArrVal";
       field.Type = TType.String;
       field.ID = 7;
       oprot.WriteFieldBegin(field);
       oprot.WriteBinary(ByteArrVal);
       oprot.WriteFieldEnd();
     }
     if (MapVal != null && __isset.mapVal) {
       field.Name = "mapVal";
       field.Type = TType.Map;
       field.ID = 8;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteMapBegin(new TMap(TType.Struct, TType.Struct, MapVal.Count));
         foreach (BaseMsg _iter10 in MapVal.Keys)
         {
           _iter10.Write(oprot);
           MapVal[_iter10].Write(oprot);
         }
         oprot.WriteMapEnd();
       }
       oprot.WriteFieldEnd();
     }
     if (ListVal != null && __isset.listVal) {
       field.Name = "listVal";
       field.Type = TType.List;
       field.ID = 9;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteListBegin(new TList(TType.Struct, ListVal.Count));
         foreach (BaseMsg _iter11 in ListVal)
         {
           _iter11.Write(oprot);
         }
         oprot.WriteListEnd();
       }
       oprot.WriteFieldEnd();
     }
     if (SetVal != null && __isset.setVal) {
       field.Name = "setVal";
       field.Type = TType.Set;
       field.ID = 10;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteSetBegin(new TSet(TType.Struct, SetVal.Count));
         foreach (BaseMsg _iter12 in SetVal)
         {
           _iter12.Write(oprot);
         }
         oprot.WriteSetEnd();
       }
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
   }
   finally
   {
     oprot.DecrementRecursionDepth();
   }
 }
コード例 #9
0
ファイル: Datahouse.cs プロジェクト: shentianyi/ifDataHouse
    public void Write(TProtocol oprot) {
      TStruct struc = new TStruct("getProductOutputNumAndTime_result");
      oprot.WriteStructBegin(struc);
      TField field = new TField();

      if (this.__isset.success) {
        if (Success != null) {
          field.Name = "Success";
          field.Type = TType.Set;
          field.ID = 0;
          oprot.WriteFieldBegin(field);
          {
            oprot.WriteSetBegin(new TSet(TType.Map, Success.Count));
            foreach (Dictionary<string, string> _iter111 in Success)
            {
              {
                oprot.WriteMapBegin(new TMap(TType.String, TType.String, _iter111.Count));
                foreach (string _iter112 in _iter111.Keys)
                {
                  oprot.WriteString(_iter112);
                  oprot.WriteString(_iter111[_iter112]);
                }
                oprot.WriteMapEnd();
              }
            }
            oprot.WriteSetEnd();
          }
          oprot.WriteFieldEnd();
        }
      }
      oprot.WriteFieldStop();
      oprot.WriteStructEnd();
    }
コード例 #10
0
ファイル: Datahouse.cs プロジェクト: shentianyi/ifDataHouse
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("getOnJobTotalTimes_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (AccessKey != null && __isset.accessKey) {
     field.Name = "accessKey";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AccessKey);
     oprot.WriteFieldEnd();
   }
   if (EntityIds != null && __isset.entityIds) {
     field.Name = "entityIds";
     field.Type = TType.Set;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, EntityIds.Count));
       foreach (string _iter98 in EntityIds)
       {
         oprot.WriteString(_iter98);
       }
       oprot.WriteSetEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.startTime) {
     field.Name = "startTime";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(StartTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.endTime) {
     field.Name = "endTime";
     field.Type = TType.I64;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(EndTime);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #11
0
ファイル: Datahouse.cs プロジェクト: shentianyi/ifDataHouse
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("getCurrentOnJobWorkerNums_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (AccessKey != null && __isset.accessKey) {
     field.Name = "accessKey";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(AccessKey);
     oprot.WriteFieldEnd();
   }
   if (EntityIds != null && __isset.entityIds) {
     field.Name = "entityIds";
     field.Type = TType.Set;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, EntityIds.Count));
       foreach (string _iter53 in EntityIds)
       {
         oprot.WriteString(_iter53);
       }
       oprot.WriteSetEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #12
0
ファイル: Cassandra.cs プロジェクト: ehornbostel/hectorsharp
            public void Write(TProtocol oprot)
            {
                TStruct struc = new TStruct("describe_keyspaces_result");
                oprot.WriteStructBegin(struc);
                TField field = new TField();

                if (this.__isset.success) {
                  if (this.success != null) {
                field.Name = "success";
                field.Type = TType.Set;
                field.ID = 0;
                oprot.WriteFieldBegin(field);
                {
                  oprot.WriteSetBegin(new TSet(TType.String, this.success.Count));
                  foreach (string _iter85 in this.success)
                  {
                oprot.WriteString(_iter85);
                oprot.WriteSetEnd();
                  }
                }
                oprot.WriteFieldEnd();
                  }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }