コード例 #1
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AuthenticationException");
   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();
 }
コード例 #2
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("InvalidRequestException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Why != null && __isset.why) {
     field.Name = "why";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Why);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #3
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CounterColumn");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "name";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Name);
   oprot.WriteFieldEnd();
   field.Name = "value";
   field.Type = TType.I64;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteI64(Value);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #4
0
ファイル: KeyCount.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("KeyCount");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "key";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Key);
   oprot.WriteFieldEnd();
   field.Name = "count";
   field.Type = TType.I32;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32(Count);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #5
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AuthenticationRequest");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   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 _iter44 in Credentials.Keys)
     {
       oprot.WriteString(_iter44);
       oprot.WriteString(Credentials[_iter44]);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #6
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ColumnPath");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Column_family != null && __isset.column_family) {
     field.Name = "column_family";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Column_family);
     oprot.WriteFieldEnd();
   }
   if (Super_column != null && __isset.super_column) {
     field.Name = "super_column";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Super_column);
     oprot.WriteFieldEnd();
   }
   if (Column != null && __isset.column) {
     field.Name = "column";
     field.Type = TType.String;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Column);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #7
0
ファイル: CfSplit.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CfSplit");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "start_token";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Start_token);
   oprot.WriteFieldEnd();
   field.Name = "end_token";
   field.Type = TType.String;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(End_token);
   oprot.WriteFieldEnd();
   field.Name = "row_count";
   field.Type = TType.I64;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteI64(Row_count);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #8
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("batch_mutate_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "mutation_map";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.String, TType.Map, Mutation_map.Count));
     foreach (byte[] _iter165 in Mutation_map.Keys)
     {
       oprot.WriteBinary(_iter165);
       {
         oprot.WriteMapBegin(new TMap(TType.String, TType.List, Mutation_map[_iter165].Count));
         foreach (string _iter166 in Mutation_map[_iter165].Keys)
         {
           oprot.WriteString(_iter166);
           {
             oprot.WriteListBegin(new TList(TType.Struct, Mutation_map[_iter165][_iter166].Count));
             foreach (Mutation _iter167 in Mutation_map[_iter165][_iter166])
             {
               _iter167.Write(oprot);
             }
             oprot.WriteListEnd();
           }
         }
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   field.Name = "consistency_level";
   field.Type = TType.I32;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Consistency_level);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #9
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("remove_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "key";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Key);
   oprot.WriteFieldEnd();
   field.Name = "column_path";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Column_path.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "timestamp";
   field.Type = TType.I64;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteI64(Timestamp);
   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();
 }
コード例 #10
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("add_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "key";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Key);
   oprot.WriteFieldEnd();
   field.Name = "column_parent";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Column_parent.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "column";
   field.Type = TType.Struct;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   Column.Write(oprot);
   oprot.WriteFieldEnd();
   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();
 }
コード例 #11
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("get_indexed_slices_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "column_parent";
   field.Type = TType.Struct;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   Column_parent.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "index_clause";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Index_clause.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "column_predicate";
   field.Type = TType.Struct;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   Column_predicate.Write(oprot);
   oprot.WriteFieldEnd();
   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();
 }
コード例 #12
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("execute_prepared_cql3_query_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "itemId";
   field.Type = TType.I32;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32(ItemId);
   oprot.WriteFieldEnd();
   field.Name = "values";
   field.Type = TType.List;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteListBegin(new TList(TType.String, Values.Count));
     foreach (byte[] _iter223 in Values)
     {
       oprot.WriteBinary(_iter223);
     }
     oprot.WriteListEnd();
   }
   oprot.WriteFieldEnd();
   field.Name = "consistency";
   field.Type = TType.I32;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Consistency);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #13
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("prepare_cql3_query_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.Struct;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            Success.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else 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();
      }
コード例 #14
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("prepare_cql3_query_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "query";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Query);
   oprot.WriteFieldEnd();
   field.Name = "compression";
   field.Type = TType.I32;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Compression);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #15
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("system_update_column_family_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.String;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            oprot.WriteString(Success);
            oprot.WriteFieldEnd();
          }
        } else 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();
          }
        } else if (this.__isset.sde) {
          if (Sde != null) {
            field.Name = "Sde";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Sde.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #16
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("multiget_count_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.Map;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            {
              oprot.WriteMapBegin(new TMap(TType.String, TType.I32, Success.Count));
              foreach (byte[] _iter133 in Success.Keys)
              {
                oprot.WriteBinary(_iter133);
                oprot.WriteI32(Success[_iter133]);
              }
              oprot.WriteMapEnd();
            }
            oprot.WriteFieldEnd();
          }
        } else 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();
          }
        } else if (this.__isset.ue) {
          if (Ue != null) {
            field.Name = "Ue";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Ue.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.te) {
          if (Te != null) {
            field.Name = "Te";
            field.Type = TType.Struct;
            field.ID = 3;
            oprot.WriteFieldBegin(field);
            Te.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #17
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("get_paged_slice_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "column_family";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Column_family);
   oprot.WriteFieldEnd();
   field.Name = "range";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Range.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "start_column";
   field.Type = TType.String;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Start_column);
   oprot.WriteFieldEnd();
   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();
 }
コード例 #18
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("set_cql_version_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "version";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Version);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #19
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("get_indexed_slices_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.List;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            {
              oprot.WriteListBegin(new TList(TType.Struct, Success.Count));
              foreach (KeySlice _iter145 in Success)
              {
                _iter145.Write(oprot);
              }
              oprot.WriteListEnd();
            }
            oprot.WriteFieldEnd();
          }
        } else 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();
          }
        } else if (this.__isset.ue) {
          if (Ue != null) {
            field.Name = "Ue";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Ue.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.te) {
          if (Te != null) {
            field.Name = "Te";
            field.Type = TType.Struct;
            field.ID = 3;
            oprot.WriteFieldBegin(field);
            Te.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #20
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("login_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "auth_request";
   field.Type = TType.Struct;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   Auth_request.Write(oprot);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #21
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("cas_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "key";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Key);
   oprot.WriteFieldEnd();
   field.Name = "column_family";
   field.Type = TType.String;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Column_family);
   oprot.WriteFieldEnd();
   if (Expected != null && __isset.expected) {
     field.Name = "expected";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Expected.Count));
       foreach (Column _iter152 in Expected)
       {
         _iter152.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Updates != null && __isset.updates) {
     field.Name = "updates";
     field.Type = TType.List;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Updates.Count));
       foreach (Column _iter153 in Updates)
       {
         _iter153.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   field.Name = "serial_consistency_level";
   field.Type = TType.I32;
   field.ID = 5;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Serial_consistency_level);
   oprot.WriteFieldEnd();
   field.Name = "commit_consistency_level";
   field.Type = TType.I32;
   field.ID = 6;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Commit_consistency_level);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #22
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("login_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.authnx) {
          if (Authnx != null) {
            field.Name = "Authnx";
            field.Type = TType.Struct;
            field.ID = 1;
            oprot.WriteFieldBegin(field);
            Authnx.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.authzx) {
          if (Authzx != null) {
            field.Name = "Authzx";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Authzx.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #23
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("remove_counter_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "key";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Key);
   oprot.WriteFieldEnd();
   field.Name = "path";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Path.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "consistency_level";
   field.Type = TType.I32;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Consistency_level);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #24
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("set_keyspace_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "keyspace";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Keyspace);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #25
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("batch_mutate_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();
          }
        } else if (this.__isset.ue) {
          if (Ue != null) {
            field.Name = "Ue";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Ue.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.te) {
          if (Te != null) {
            field.Name = "Te";
            field.Type = TType.Struct;
            field.ID = 3;
            oprot.WriteFieldBegin(field);
            Te.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #26
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      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();
      }
コード例 #27
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("UnavailableException");
   oprot.WriteStructBegin(struc);
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #28
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("get_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          if (Success != null) {
            field.Name = "Success";
            field.Type = TType.Struct;
            field.ID = 0;
            oprot.WriteFieldBegin(field);
            Success.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else 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();
          }
        } else if (this.__isset.nfe) {
          if (Nfe != null) {
            field.Name = "Nfe";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            Nfe.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.ue) {
          if (Ue != null) {
            field.Name = "Ue";
            field.Type = TType.Struct;
            field.ID = 3;
            oprot.WriteFieldBegin(field);
            Ue.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.te) {
          if (Te != null) {
            field.Name = "Te";
            field.Type = TType.Struct;
            field.ID = 4;
            oprot.WriteFieldBegin(field);
            Te.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
コード例 #29
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CqlPreparedResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.itemId) {
     field.Name = "itemId";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(ItemId);
     oprot.WriteFieldEnd();
   }
   if (__isset.count) {
     field.Name = "count";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Count);
     oprot.WriteFieldEnd();
   }
   if (Variable_types != null && __isset.variable_types) {
     field.Name = "variable_types";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Variable_types.Count));
       foreach (string _iter93 in Variable_types)
       {
         oprot.WriteString(_iter93);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Variable_names != null && __isset.variable_names) {
     field.Name = "variable_names";
     field.Type = TType.List;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Variable_names.Count));
       foreach (string _iter94 in Variable_names)
       {
         oprot.WriteString(_iter94);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
コード例 #30
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("multiget_count_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "keys";
   field.Type = TType.List;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteListBegin(new TList(TType.String, Keys.Count));
     foreach (byte[] _iter128 in Keys)
     {
       oprot.WriteBinary(_iter128);
     }
     oprot.WriteListEnd();
   }
   oprot.WriteFieldEnd();
   field.Name = "column_parent";
   field.Type = TType.Struct;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   Column_parent.Write(oprot);
   oprot.WriteFieldEnd();
   field.Name = "predicate";
   field.Type = TType.Struct;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   Predicate.Write(oprot);
   oprot.WriteFieldEnd();
   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();
 }