WriteBinary() публичный абстрактный Метод

public abstract WriteBinary ( byte b ) : void
b byte
Результат void
Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
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("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[] _iter98 in Success.Keys)
                  {
                oprot.WriteBinary(_iter98);
                {
                  oprot.WriteListBegin(new TList(TType.Struct, Success[_iter98].Count));
                  foreach (ColumnOrSuperColumn _iter99 in Success[_iter98])
                  {
                    _iter99.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();
            }
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("insert_args");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (Key != null && __isset.key) {
       field.Name = "key";
       field.Type = TType.String;
       field.ID = 1;
       oprot.WriteFieldBegin(field);
       oprot.WriteBinary(Key);
       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 (Column != null && __isset.column) {
       field.Name = "column";
       field.Type = TType.Struct;
       field.ID = 3;
       oprot.WriteFieldBegin(field);
       Column.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();
 }
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("execute_cql_query_args");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (Query != null && __isset.query) {
       field.Name = "query";
       field.Type = TType.String;
       field.ID = 1;
       oprot.WriteFieldBegin(field);
       oprot.WriteBinary(Query);
       oprot.WriteFieldEnd();
     }
     if (__isset.compression) {
       field.Name = "compression";
       field.Type = TType.I32;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32((int)Compression);
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #7
0
 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();
 }
Пример #8
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();
 }
Пример #9
0
 public void Write(TProtocol oprot)
 {
     var struc = new TStruct("RestResponse");
     oprot.WriteStructBegin(struc);
     var field = new TField();
     if (__isset.status)
     {
         field.Name = "status";
         field.Type = TType.I32;
         field.ID = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteI32((int) status);
         oprot.WriteFieldEnd();
     }
     if (headers != null && __isset.headers)
     {
         field.Name = "headers";
         field.Type = TType.Map;
         field.ID = 2;
         oprot.WriteFieldBegin(field);
         {
             oprot.WriteMapBegin(new TMap(TType.String, TType.String, headers.Count));
             foreach (string _iter14 in headers.Keys)
             {
                 oprot.WriteString(_iter14);
                 oprot.WriteString(headers[_iter14]);
                 oprot.WriteMapEnd();
             }
         }
         oprot.WriteFieldEnd();
     }
     if (body != null && __isset.body)
     {
         field.Name = "body";
         field.Type = TType.String;
         field.ID = 3;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(body);
         oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #10
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("ColumnParent");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.column_family != null && __isset.column_family) {
     field.Name = "column_family";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.column_family);
     oprot.WriteFieldEnd();
       }
       if (this.super_column != null && __isset.super_column) {
     field.Name = "super_column";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(this.super_column);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
Пример #11
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("ColumnDef");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(this.name);
     oprot.WriteFieldEnd();
       }
       if (this.validation_class != null && __isset.validation_class) {
     field.Name = "validation_class";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.validation_class);
     oprot.WriteFieldEnd();
       }
       if (__isset.index_type) {
     field.Name = "index_type";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)this.index_type);
     oprot.WriteFieldEnd();
       }
       if (this.index_name != null && __isset.index_name) {
     field.Name = "index_name";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.index_name);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
Пример #12
0
 public void Write(TProtocol oprot)
 {
     var struc = new TStruct("mutateRows_args");
     oprot.WriteStructBegin(struc);
     var field = new TField();
     if (this.TableName != null && this.__isset.tableName)
     {
         field.Name = "tableName";
         field.Type = TType.String;
         field.ID = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(this.TableName);
         oprot.WriteFieldEnd();
     }
     if (this.RowBatches != null && this.__isset.rowBatches)
     {
         field.Name = "rowBatches";
         field.Type = TType.List;
         field.ID = 2;
         oprot.WriteFieldBegin(field);
         {
             oprot.WriteListBegin(new TList(TType.Struct, this.RowBatches.Count));
             foreach (BatchMutation _iter117 in this.RowBatches)
             {
                 _iter117.Write(oprot);
             }
             oprot.WriteListEnd();
         }
         oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #13
0
 public void Write(TProtocol oprot)
 {
     var struc = new TStruct("majorCompact_args");
     oprot.WriteStructBegin(struc);
     var field = new TField();
     if (this.TableNameOrRegionName != null && this.__isset.tableNameOrRegionName)
     {
         field.Name = "tableNameOrRegionName";
         field.Type = TType.String;
         field.ID = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(this.TableNameOrRegionName);
         oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #14
0
 public void Write(TProtocol oprot)
 {
     var struc = new TStruct("get_args");
     oprot.WriteStructBegin(struc);
     var field = new TField();
     if (this.TableName != null && this.__isset.tableName)
     {
         field.Name = "tableName";
         field.Type = TType.String;
         field.ID = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(this.TableName);
         oprot.WriteFieldEnd();
     }
     if (this.Row != null && this.__isset.row)
     {
         field.Name = "row";
         field.Type = TType.String;
         field.ID = 2;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(this.Row);
         oprot.WriteFieldEnd();
     }
     if (this.Column != null && this.__isset.column)
     {
         field.Name = "column";
         field.Type = TType.String;
         field.ID = 3;
         oprot.WriteFieldBegin(field);
         oprot.WriteBinary(this.Column);
         oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #15
0
 public override void WriteBinary(byte[] bytes)
 {
     WrappedProtocol.WriteBinary(bytes);
 }
Пример #16
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("TColumn");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (Family != null && __isset.family) {
     field.Name = "family";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Family);
     oprot.WriteFieldEnd();
       }
       if (Qualifier != null && __isset.qualifier) {
     field.Name = "qualifier";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Qualifier);
     oprot.WriteFieldEnd();
       }
       if (__isset.timestamp) {
     field.Name = "timestamp";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Timestamp);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
Пример #17
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("TPut");
       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 (ColumnValues != null && __isset.columnValues) {
     field.Name = "columnValues";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, ColumnValues.Count));
       foreach (TColumnValue _iter11 in ColumnValues)
       {
     _iter11.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (__isset.timestamp) {
     field.Name = "timestamp";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Timestamp);
     oprot.WriteFieldEnd();
       }
       if (__isset.writeToWal) {
     field.Name = "writeToWal";
     field.Type = TType.Bool;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(WriteToWal);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
Пример #18
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("TRowResult");
     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 (Columns != null && __isset.columns) {
       field.Name = "columns";
       field.Type = TType.Map;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       {
     oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, Columns.Count));
     foreach (byte[] _iter8 in Columns.Keys)
     {
       oprot.WriteBinary(_iter8);
       Columns[_iter8].Write(oprot);
       oprot.WriteMapEnd();
     }
       }
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
Пример #19
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ComponentObject");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Serialized_java != null && __isset.serialized_java) {
     field.Name = "serialized_java";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Serialized_java);
     oprot.WriteFieldEnd();
   }
   if (Shell != null && __isset.shell) {
     field.Name = "shell";
     field.Type = TType.Struct;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     Shell.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (Java_object != null && __isset.java_object) {
     field.Name = "java_object";
     field.Type = TType.Struct;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     Java_object.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #20
0
 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();
 }
Пример #21
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Message");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (From != null && __isset.from) {
     field.Name = "from";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(From);
     oprot.WriteFieldEnd();
   }
   if (To != null && __isset.to) {
     field.Name = "to";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(To);
     oprot.WriteFieldEnd();
   }
   if (__isset.toType) {
     field.Name = "toType";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)ToType);
     oprot.WriteFieldEnd();
   }
   if (Id != null && __isset.id) {
     field.Name = "id";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Id);
     oprot.WriteFieldEnd();
   }
   if (__isset.createdTime) {
     field.Name = "createdTime";
     field.Type = TType.I64;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(CreatedTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.deliveredTime) {
     field.Name = "deliveredTime";
     field.Type = TType.I64;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(DeliveredTime);
     oprot.WriteFieldEnd();
   }
   if (Text != null && __isset.text) {
     field.Name = "text";
     field.Type = TType.String;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Text);
     oprot.WriteFieldEnd();
   }
   if (Location != null && __isset.location) {
     field.Name = "location";
     field.Type = TType.Struct;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     Location.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.hasContent) {
     field.Name = "hasContent";
     field.Type = TType.Bool;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(HasContent);
     oprot.WriteFieldEnd();
   }
   if (__isset.contentType) {
     field.Name = "contentType";
     field.Type = TType.I32;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)ContentType);
     oprot.WriteFieldEnd();
   }
   if (ContentPreview != null && __isset.contentPreview) {
     field.Name = "contentPreview";
     field.Type = TType.String;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(ContentPreview);
     oprot.WriteFieldEnd();
   }
   if (ContentMetadata != null && __isset.contentMetadata) {
     field.Name = "contentMetadata";
     field.Type = TType.Map;
     field.ID = 18;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, ContentMetadata.Count));
       foreach (string _iter28 in ContentMetadata.Keys)
       {
         oprot.WriteString(_iter28);
         oprot.WriteString(ContentMetadata[_iter28]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #22
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("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[] _iter128 in Mutation_map.Keys)
     {
       oprot.WriteBinary(_iter128);
       {
     oprot.WriteMapBegin(new TMap(TType.String, TType.List, Mutation_map[_iter128].Count));
     foreach (string _iter129 in Mutation_map[_iter128].Keys)
     {
       oprot.WriteString(_iter129);
       {
         oprot.WriteListBegin(new TList(TType.Struct, Mutation_map[_iter128][_iter129].Count));
         foreach (Mutation _iter130 in Mutation_map[_iter128][_iter129])
         {
           _iter130.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();
 }
Пример #23
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("QueueResponse");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.resultCode) {
     field.Name = "resultCode";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)ResultCode);
     oprot.WriteFieldEnd();
   }
   if (Data != null && __isset.data) {
     field.Name = "data";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Data);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #24
0
 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();
 }
Пример #25
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TColumn");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (ColumnName != null && __isset.columnName) {
     field.Name = "columnName";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(ColumnName);
     oprot.WriteFieldEnd();
   }
   if (Cell != null && __isset.cell) {
     field.Name = "cell";
     field.Type = TType.Struct;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     Cell.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #26
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("remove_counter_args");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (Key != null && __isset.key) {
       field.Name = "key";
       field.Type = TType.String;
       field.ID = 1;
       oprot.WriteFieldBegin(field);
       oprot.WriteBinary(Key);
       oprot.WriteFieldEnd();
     }
     if (Path != null && __isset.path) {
       field.Name = "path";
       field.Type = TType.Struct;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       Path.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (__isset.consistency_level) {
       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();
 }
Пример #27
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ColumnDef");
   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 (Validation_class != null && __isset.validation_class) {
     field.Name = "validation_class";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Validation_class);
     oprot.WriteFieldEnd();
   }
   if (__isset.index_type) {
     field.Name = "index_type";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Index_type);
     oprot.WriteFieldEnd();
   }
   if (Index_name != null && __isset.index_name) {
     field.Name = "index_name";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Index_name);
     oprot.WriteFieldEnd();
   }
   if (Index_options != null && __isset.index_options) {
     field.Name = "index_options";
     field.Type = TType.Map;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Index_options.Count));
       foreach (string _iter45 in Index_options.Keys)
       {
         oprot.WriteString(_iter45);
         oprot.WriteString(Index_options[_iter45]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #28
0
 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)
       {
         oprot.WriteString(_iter26);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (Resources != null && __isset.resources) {
     field.Name = "resources";
     field.Type = TType.List;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Resources.Count));
       foreach (Resource _iter27 in Resources)
       {
         _iter27.Write(oprot);
         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 (TagNames != null && __isset.tagNames) {
     field.Name = "tagNames";
     field.Type = TType.List;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, TagNames.Count));
       foreach (string _iter28 in TagNames)
       {
         oprot.WriteString(_iter28);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #29
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("Deletion");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.clock != null && __isset.clock) {
     field.Name = "clock";
     field.Type = TType.Struct;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     this.clock.Write(oprot);
     oprot.WriteFieldEnd();
       }
       if (this.super_column != null && __isset.super_column) {
     field.Name = "super_column";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(this.super_column);
     oprot.WriteFieldEnd();
       }
       if (this.predicate != null && __isset.predicate) {
     field.Name = "predicate";
     field.Type = TType.Struct;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     this.predicate.Write(oprot);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
Пример #30
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TAppend");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Table != null && __isset.table) {
     field.Name = "table";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Table);
     oprot.WriteFieldEnd();
   }
   if (Row != null && __isset.row) {
     field.Name = "row";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Row);
     oprot.WriteFieldEnd();
   }
   if (Columns != null && __isset.columns) {
     field.Name = "columns";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Columns.Count));
       foreach (byte[] _iter23 in Columns)
       {
         oprot.WriteBinary(_iter23);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Values != null && __isset.values) {
     field.Name = "values";
     field.Type = TType.List;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Values.Count));
       foreach (byte[] _iter24 in Values)
       {
         oprot.WriteBinary(_iter24);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
Пример #31
0
 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("Column");
       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 (Value != null && __isset.value) {
     field.Name = "value";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Value);
     oprot.WriteFieldEnd();
       }
       if (__isset.timestamp) {
     field.Name = "timestamp";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Timestamp);
     oprot.WriteFieldEnd();
       }
       if (__isset.ttl) {
     field.Name = "ttl";
     field.Type = TType.I32;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Ttl);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }