Beispiel #1
0
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("describe_splits_ex_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 (CfSplit _iter215 in Success)
              {
                _iter215.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();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
Beispiel #2
0
 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();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CounterSuperColumn");
   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 (Columns != null && __isset.columns) {
     field.Name = "columns";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Columns.Count));
       foreach (CounterColumn _iter7 in Columns)
       {
         _iter7.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #4
0
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("describe_schema_versions_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.List, Success.Count));
              foreach (string _iter189 in Success.Keys)
              {
                oprot.WriteString(_iter189);
                {
                  oprot.WriteListBegin(new TList(TType.String, Success[_iter189].Count));
                  foreach (string _iter190 in Success[_iter189])
                  {
                    oprot.WriteString(_iter190);
                  }
                  oprot.WriteListEnd();
                }
              }
              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();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
Beispiel #5
0
 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();
 }
Beispiel #6
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CASResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "success";
   field.Type = TType.Bool;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBool(Success);
   oprot.WriteFieldEnd();
   if (Current_values != null && __isset.current_values) {
     field.Name = "current_values";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Current_values.Count));
       foreach (Column _iter27 in Current_values)
       {
         _iter27.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #7
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("execute_prepared_cql_query_args");
   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 (Values != null && __isset.values) {
     field.Name = "values";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Values.Count));
       foreach (byte[] _iter194 in Values)
       {
         oprot.WriteBinary(_iter194);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #8
0
      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();
      }
Beispiel #9
0
 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) {
     field.Name = "default_validation_class";
     field.Type = TType.String;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Default_validation_class);
     oprot.WriteFieldEnd();
   }
   if (__isset.id) {
     field.Name = "id";
     field.Type = TType.I32;
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Id);
     oprot.WriteFieldEnd();
   }
   if (__isset.min_compaction_threshold) {
     field.Name = "min_compaction_threshold";
     field.Type = TType.I32;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Min_compaction_threshold);
     oprot.WriteFieldEnd();
   }
   if (__isset.max_compaction_threshold) {
     field.Name = "max_compaction_threshold";
     field.Type = TType.I32;
     field.ID = 18;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Max_compaction_threshold);
     oprot.WriteFieldEnd();
   }
   if (__isset.row_cache_save_period_in_seconds) {
     field.Name = "row_cache_save_period_in_seconds";
     field.Type = TType.I32;
     field.ID = 19;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Row_cache_save_period_in_seconds);
     oprot.WriteFieldEnd();
   }
   if (__isset.key_cache_save_period_in_seconds) {
     field.Name = "key_cache_save_period_in_seconds";
     field.Type = TType.I32;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Key_cache_save_period_in_seconds);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_flush_after_mins) {
     field.Name = "memtable_flush_after_mins";
     field.Type = TType.I32;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Memtable_flush_after_mins);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_throughput_in_mb) {
     field.Name = "memtable_throughput_in_mb";
     field.Type = TType.I32;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Memtable_throughput_in_mb);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_operations_in_millions) {
     field.Name = "memtable_operations_in_millions";
     field.Type = TType.Double;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Memtable_operations_in_millions);
     oprot.WriteFieldEnd();
   }
   if (__isset.replicate_on_write) {
     field.Name = "replicate_on_write";
     field.Type = TType.Bool;
     field.ID = 24;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Replicate_on_write);
     oprot.WriteFieldEnd();
   }
   if (__isset.merge_shards_chance) {
     field.Name = "merge_shards_chance";
     field.Type = TType.Double;
     field.ID = 25;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Merge_shards_chance);
     oprot.WriteFieldEnd();
   }
   if (Key_validation_class != null && __isset.key_validation_class) {
     field.Name = "key_validation_class";
     field.Type = TType.String;
     field.ID = 26;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Key_validation_class);
     oprot.WriteFieldEnd();
   }
   if (Row_cache_provider != null && __isset.row_cache_provider) {
     field.Name = "row_cache_provider";
     field.Type = TType.String;
     field.ID = 27;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Row_cache_provider);
     oprot.WriteFieldEnd();
   }
   if (Key_alias != null && __isset.key_alias) {
     field.Name = "key_alias";
     field.Type = TType.String;
     field.ID = 28;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Key_alias);
     oprot.WriteFieldEnd();
   }
   if (Compaction_strategy != null && __isset.compaction_strategy) {
     field.Name = "compaction_strategy";
     field.Type = TType.String;
     field.ID = 29;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Compaction_strategy);
     oprot.WriteFieldEnd();
   }
   if (Compaction_strategy_options != null && __isset.compaction_strategy_options) {
     field.Name = "compaction_strategy_options";
     field.Type = TType.Map;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Compaction_strategy_options.Count));
       foreach (string _iter58 in Compaction_strategy_options.Keys)
       {
         oprot.WriteString(_iter58);
         oprot.WriteString(Compaction_strategy_options[_iter58]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.row_cache_keys_to_save) {
     field.Name = "row_cache_keys_to_save";
     field.Type = TType.I32;
     field.ID = 31;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Row_cache_keys_to_save);
     oprot.WriteFieldEnd();
   }
   if (Compression_options != null && __isset.compression_options) {
     field.Name = "compression_options";
     field.Type = TType.Map;
     field.ID = 32;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Compression_options.Count));
       foreach (string _iter59 in Compression_options.Keys)
       {
         oprot.WriteString(_iter59);
         oprot.WriteString(Compression_options[_iter59]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.bloom_filter_fp_chance) {
     field.Name = "bloom_filter_fp_chance";
     field.Type = TType.Double;
     field.ID = 33;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Bloom_filter_fp_chance);
     oprot.WriteFieldEnd();
   }
   if (Caching != null && __isset.caching) {
     field.Name = "caching";
     field.Type = TType.String;
     field.ID = 34;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Caching);
     oprot.WriteFieldEnd();
   }
   if (__isset.dclocal_read_repair_chance) {
     field.Name = "dclocal_read_repair_chance";
     field.Type = TType.Double;
     field.ID = 37;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Dclocal_read_repair_chance);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("IndexClause");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Expressions != null && __isset.expressions) {
     field.Name = "expressions";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Expressions.Count));
       foreach (IndexExpression _iter15 in Expressions)
       {
         _iter15.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Start_key != null && __isset.start_key) {
     field.Name = "start_key";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Start_key);
     oprot.WriteFieldEnd();
   }
   if (__isset.count) {
     field.Name = "count";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Count);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #11
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("KsDef");
   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.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (Strategy_class != null && __isset.strategy_class) {
     field.Name = "strategy_class";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Strategy_class);
     oprot.WriteFieldEnd();
   }
   if (Strategy_options != null && __isset.strategy_options) {
     field.Name = "strategy_options";
     field.Type = TType.Map;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Strategy_options.Count));
       foreach (string _iter67 in Strategy_options.Keys)
       {
         oprot.WriteString(_iter67);
         oprot.WriteString(Strategy_options[_iter67]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.replication_factor) {
     field.Name = "replication_factor";
     field.Type = TType.I32;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Replication_factor);
     oprot.WriteFieldEnd();
   }
   if (Cf_defs != null && __isset.cf_defs) {
     field.Name = "cf_defs";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Cf_defs.Count));
       foreach (CfDef _iter68 in Cf_defs)
       {
         _iter68.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.durable_writes) {
     field.Name = "durable_writes";
     field.Type = TType.Bool;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Durable_writes);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #12
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CqlRow");
   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 = "columns";
   field.Type = TType.List;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteListBegin(new TList(TType.Struct, Columns.Count));
     foreach (Column _iter85 in Columns)
     {
       _iter85.Write(oprot);
     }
     oprot.WriteListEnd();
   }
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #13
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TokenRange");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Start_token != null && __isset.start_token) {
     field.Name = "start_token";
     field.Type = TType.String;
     field.ID = 1;
     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 = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(End_token);
     oprot.WriteFieldEnd();
   }
   if (Endpoints != null && __isset.endpoints) {
     field.Name = "endpoints";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Endpoints.Count));
       foreach (string _iter33 in Endpoints)
       {
         oprot.WriteString(_iter33);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Rpc_endpoints != null && __isset.rpc_endpoints) {
     field.Name = "rpc_endpoints";
     field.Type = TType.List;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Rpc_endpoints.Count));
       foreach (string _iter34 in Rpc_endpoints)
       {
         oprot.WriteString(_iter34);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Endpoint_details != null && __isset.endpoint_details) {
     field.Name = "endpoint_details";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Endpoint_details.Count));
       foreach (EndpointDetails _iter35 in Endpoint_details)
       {
         _iter35.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #14
0
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("multiget_slice_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.List, Success.Count));
              foreach (byte[] _iter123 in Success.Keys)
              {
                oprot.WriteBinary(_iter123);
                {
                  oprot.WriteListBegin(new TList(TType.Struct, Success[_iter123].Count));
                  foreach (ColumnOrSuperColumn _iter124 in Success[_iter123])
                  {
                    _iter124.Write(oprot);
                  }
                  oprot.WriteListEnd();
                }
              }
              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();
      }
Beispiel #15
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("atomic_batch_mutate_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Mutation_map != null && __isset.mutation_map) {
     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[] _iter158 in Mutation_map.Keys)
       {
         oprot.WriteBinary(_iter158);
         {
           oprot.WriteMapBegin(new TMap(TType.String, TType.List, Mutation_map[_iter158].Count));
           foreach (string _iter159 in Mutation_map[_iter158].Keys)
           {
             oprot.WriteString(_iter159);
             {
               oprot.WriteListBegin(new TList(TType.Struct, Mutation_map[_iter158][_iter159].Count));
               foreach (Mutation _iter160 in Mutation_map[_iter158][_iter159])
               {
                 _iter160.Write(oprot);
               }
               oprot.WriteListEnd();
             }
           }
           oprot.WriteMapEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.consistency_level) {
     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();
 }
Beispiel #16
0
 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();
 }
Beispiel #17
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CqlResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.type) {
     field.Name = "type";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Type);
     oprot.WriteFieldEnd();
   }
   if (Rows != null && __isset.rows) {
     field.Name = "rows";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Rows.Count));
       foreach (CqlRow _iter86 in Rows)
       {
         _iter86.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.num) {
     field.Name = "num";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Num);
     oprot.WriteFieldEnd();
   }
   if (Schema != null && __isset.schema) {
     field.Name = "schema";
     field.Type = TType.Struct;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     Schema.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Beispiel #18
0
 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();
 }
Beispiel #19
0
 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();
 }
 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();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SlicePredicate");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Column_names != null && __isset.column_names) {
     field.Name = "column_names";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Column_names.Count));
       foreach (byte[] _iter11 in Column_names)
       {
         oprot.WriteBinary(_iter11);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Slice_range != null && __isset.slice_range) {
     field.Name = "slice_range";
     field.Type = TType.Struct;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     Slice_range.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }