public void Read (TProtocol iprot) { bool isset_why = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Why = iprot.ReadString(); isset_why = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_why) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 3: if (field.Type == TType.String) { Column_family = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { Super_column = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Key = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Count = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { Acknowledged_by = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Bool) { Acknowledged_by_batchlog = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_name = false; bool isset_options = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Name = iprot.ReadString(); isset_name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Map) { { Options = new Dictionary<string, string>(); TMap _map50 = iprot.ReadMapBegin(); for( int _i51 = 0; _i51 < _map50.Count; ++_i51) { string _key52; string _val53; _key52 = iprot.ReadString(); _val53 = iprot.ReadString(); Options[_key52] = _val53; } iprot.ReadMapEnd(); } isset_options = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_name) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_options) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_name = false; bool isset_columns = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Name = iprot.ReadBinary(); isset_name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { Columns = new List<CounterColumn>(); TList _list4 = iprot.ReadListBegin(); for( int _i5 = 0; _i5 < _list4.Count; ++_i5) { CounterColumn _elem6 = new CounterColumn(); _elem6 = new CounterColumn(); _elem6.Read(iprot); Columns.Add(_elem6); } iprot.ReadListEnd(); } isset_columns = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_name) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_columns) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_column_name = false; bool isset_op = false; bool isset_value = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Column_name = iprot.ReadBinary(); isset_column_name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Op = (IndexOperator)iprot.ReadI32(); isset_op = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Value = iprot.ReadBinary(); isset_value = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_column_name) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_op) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_value) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_start_token = false; bool isset_end_token = false; bool isset_row_count = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Start_token = iprot.ReadString(); isset_start_token = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { End_token = iprot.ReadString(); isset_end_token = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I64) { Row_count = iprot.ReadI64(); isset_row_count = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_start_token) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_end_token) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_row_count) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { Expressions = new List<IndexExpression>(); TList _list12 = iprot.ReadListBegin(); for( int _i13 = 0; _i13 < _list12.Count; ++_i13) { IndexExpression _elem14 = new IndexExpression(); _elem14 = new IndexExpression(); _elem14.Read(iprot); Expressions.Add(_elem14); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Start_key = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Count = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public static TApplicationException Read(TProtocol iprot) { TField field; string message = null; ExceptionType type = ExceptionType.Unknown; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { message = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { type = (ExceptionType)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); return new TApplicationException(type, message); }
public void Read (TProtocol iprot) { bool isset_success = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Bool) { Success = iprot.ReadBool(); isset_success = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { Current_values = new List<Column>(); TList _list24 = iprot.ReadListBegin(); for( int _i25 = 0; _i25 < _list24.Count; ++_i25) { Column _elem26 = new Column(); _elem26 = new Column(); _elem26.Read(iprot); Current_values.Add(_elem26); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_success) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { Column_names = new List<byte[]>(); TList _list8 = iprot.ReadListBegin(); for( int _i9 = 0; _i9 < _list8.Count; ++_i9) { byte[] _elem10 = null; _elem10 = iprot.ReadBinary(); Column_names.Add(_elem10); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Slice_range = new SliceRange(); Slice_range.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Key = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { Columns = new List<ColumnOrSuperColumn>(); TList _list20 = iprot.ReadListBegin(); for( int _i21 = 0; _i21 < _list20.Count; ++_i21) { ColumnOrSuperColumn _elem22 = new ColumnOrSuperColumn(); _elem22 = new ColumnOrSuperColumn(); _elem22.Read(iprot); Columns.Add(_elem22); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_credentials = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Map) { { Credentials = new Dictionary<string, string>(); TMap _map40 = iprot.ReadMapBegin(); for( int _i41 = 0; _i41 < _map40.Count; ++_i41) { string _key42; string _val43; _key42 = iprot.ReadString(); _val43 = iprot.ReadString(); Credentials[_key42] = _val43; } iprot.ReadMapEnd(); } isset_credentials = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_credentials) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I64) { Timestamp = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Super_column = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Predicate = new SlicePredicate(); Predicate.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Host = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Datacenter = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Rack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Start_token = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { End_token = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I64) { Row_count = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Map) { { Credentials = new Dictionary<string, string>(); TMap _map36 = iprot.ReadMapBegin(); for( int _i37 = 0; _i37 < _map36.Count; ++_i37) { string _key38; string _val39; _key38 = iprot.ReadString(); _val39 = iprot.ReadString(); Credentials[_key38] = _val39; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Column_or_supercolumn = new ColumnOrSuperColumn(); Column_or_supercolumn.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Deletion = new Deletion(); Deletion.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_column_family = false; bool isset_range = false; bool isset_start_column = false; bool isset_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Column_family = iprot.ReadString(); isset_column_family = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Range = new KeyRange(); Range.Read(iprot); isset_range = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Start_column = iprot.ReadBinary(); isset_start_column = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.I32) { Consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_column_family) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_range) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_start_column) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_mutation_map = false; bool isset_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Map) { { Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>(); TMap _map168 = iprot.ReadMapBegin(); for( int _i169 = 0; _i169 < _map168.Count; ++_i169) { byte[] _key170; Dictionary<string, List<Mutation>> _val171; _key170 = iprot.ReadBinary(); { _val171 = new Dictionary<string, List<Mutation>>(); TMap _map172 = iprot.ReadMapBegin(); for( int _i173 = 0; _i173 < _map172.Count; ++_i173) { string _key174; List<Mutation> _val175; _key174 = iprot.ReadString(); { _val175 = new List<Mutation>(); TList _list176 = iprot.ReadListBegin(); for( int _i177 = 0; _i177 < _list176.Count; ++_i177) { Mutation _elem178 = new Mutation(); _elem178 = new Mutation(); _elem178.Read(iprot); _val175.Add(_elem178); } iprot.ReadListEnd(); } _val171[_key174] = _val175; } iprot.ReadMapEnd(); } Mutation_map[_key170] = _val171; } iprot.ReadMapEnd(); } isset_mutation_map = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_mutation_map) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Ire = new InvalidRequestException(); Ire.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Ue = new UnavailableException(); Ue.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Te = new TimedOutException(); Te.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_mutation_map = false; bool isset_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Map) { { Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>(); TMap _map154 = iprot.ReadMapBegin(); for( int _i155 = 0; _i155 < _map154.Count; ++_i155) { byte[] _key156; Dictionary<string, List<Mutation>> _val157; _key156 = iprot.ReadBinary(); { _val157 = new Dictionary<string, List<Mutation>>(); TMap _map158 = iprot.ReadMapBegin(); for( int _i159 = 0; _i159 < _map158.Count; ++_i159) { string _key160; List<Mutation> _val161; _key160 = iprot.ReadString(); { _val161 = new List<Mutation>(); TList _list162 = iprot.ReadListBegin(); for( int _i163 = 0; _i163 < _list162.Count; ++_i163) { Mutation _elem164 = new Mutation(); _elem164 = new Mutation(); _elem164.Read(iprot); _val161.Add(_elem164); } iprot.ReadListEnd(); } _val157[_key160] = _val161; } iprot.ReadMapEnd(); } Mutation_map[_key156] = _val157; } iprot.ReadMapEnd(); } isset_mutation_map = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_mutation_map) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_key = false; bool isset_path = false; bool isset_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Key = iprot.ReadBinary(); isset_key = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Path = new ColumnPath(); Path.Read(iprot); isset_path = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_key) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_path) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { bool isset_key = false; bool isset_column_family = false; bool isset_serial_consistency_level = false; bool isset_commit_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Key = iprot.ReadBinary(); isset_key = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Column_family = iprot.ReadString(); isset_column_family = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { Expected = new List<Column>(); TList _list146 = iprot.ReadListBegin(); for( int _i147 = 0; _i147 < _list146.Count; ++_i147) { Column _elem148 = new Column(); _elem148 = new Column(); _elem148.Read(iprot); Expected.Add(_elem148); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.List) { { Updates = new List<Column>(); TList _list149 = iprot.ReadListBegin(); for( int _i150 = 0; _i150 < _list149.Count; ++_i150) { Column _elem151 = new Column(); _elem151 = new Column(); _elem151.Read(iprot); Updates.Add(_elem151); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { Serial_consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_serial_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.I32) { Commit_consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_commit_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_key) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_column_family) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_serial_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_commit_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.List) { { Success = new List<KeySlice>(); TList _list142 = iprot.ReadListBegin(); for( int _i143 = 0; _i143 < _list142.Count; ++_i143) { KeySlice _elem144 = new KeySlice(); _elem144 = new KeySlice(); _elem144.Read(iprot); Success.Add(_elem144); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { Ire = new InvalidRequestException(); Ire.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Ue = new UnavailableException(); Ue.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Te = new TimedOutException(); Te.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.Map) { { Success = new Dictionary<byte[], int>(); TMap _map129 = iprot.ReadMapBegin(); for( int _i130 = 0; _i130 < _map129.Count; ++_i130) { byte[] _key131; int _val132; _key131 = iprot.ReadBinary(); _val132 = iprot.ReadI32(); Success[_key131] = _val132; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { Ire = new InvalidRequestException(); Ire.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Ue = new UnavailableException(); Ue.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Te = new TimedOutException(); Te.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { ItemId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Count = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { Variable_types = new List<string>(); TList _list87 = iprot.ReadListBegin(); for( int _i88 = 0; _i88 < _list87.Count; ++_i88) { string _elem89 = null; _elem89 = iprot.ReadString(); Variable_types.Add(_elem89); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.List) { { Variable_names = new List<string>(); TList _list90 = iprot.ReadListBegin(); for( int _i91 = 0; _i91 < _list90.Count; ++_i91) { string _elem92 = null; _elem92 = iprot.ReadString(); Variable_names.Add(_elem92); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_column_parent = false; bool isset_index_clause = false; bool isset_column_predicate = false; bool isset_consistency_level = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Column_parent = new ColumnParent(); Column_parent.Read(iprot); isset_column_parent = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Index_clause = new IndexClause(); Index_clause.Read(iprot); isset_index_clause = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Column_predicate = new SlicePredicate(); Column_predicate.Read(iprot); isset_column_predicate = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.I32) { Consistency_level = (ConsistencyLevel)iprot.ReadI32(); isset_consistency_level = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_column_parent) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_index_clause) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_column_predicate) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency_level) throw new TProtocolException(TProtocolException.INVALID_DATA); }