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) { Why = 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) { 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) { 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_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) { 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_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) { 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) { 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) { bool isset_keys = false; bool isset_column_parent = false; bool isset_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.List) { { Keys = new List<byte[]>(); TList _list125 = iprot.ReadListBegin(); for( int _i126 = 0; _i126 < _list125.Count; ++_i126) { byte[] _elem127 = null; _elem127 = iprot.ReadBinary(); Keys.Add(_elem127); } iprot.ReadListEnd(); } isset_keys = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: 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 3: if (field.Type == TType.Struct) { Predicate = new SlicePredicate(); Predicate.Read(iprot); isset_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_keys) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_column_parent) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_predicate) 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 0: if (field.Type == TType.List) { { Success = new List<TokenRange>(); TList _list199 = iprot.ReadListBegin(); for( int _i200 = 0; _i200 < _list199.Count; ++_i200) { TokenRange _elem201 = new TokenRange(); _elem201 = new TokenRange(); _elem201.Read(iprot); Success.Add(_elem201); } 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; 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 _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) { 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_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) { bool isset_itemId = false; bool isset_values = false; bool isset_consistency = 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.I32) { ItemId = iprot.ReadI32(); isset_itemId = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { Values = new List<byte[]>(); TList _list220 = iprot.ReadListBegin(); for( int _i221 = 0; _i221 < _list220.Count; ++_i221) { byte[] _elem222 = null; _elem222 = iprot.ReadBinary(); Values.Add(_elem222); } iprot.ReadListEnd(); } isset_values = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Consistency = (ConsistencyLevel)iprot.ReadI32(); isset_consistency = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_itemId) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_values) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_consistency) 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.Struct) { Success = new CqlPreparedResult(); Success.Read(iprot); } 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; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { bool isset_query = false; bool isset_compression = 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) { Query = iprot.ReadBinary(); isset_query = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Compression = (Compression)iprot.ReadI32(); isset_compression = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_query) throw new TProtocolException(TProtocolException.INVALID_DATA); if (!isset_compression) 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<CfSplit>(); TList _list212 = iprot.ReadListBegin(); for( int _i213 = 0; _i213 < _list212.Count; ++_i213) { CfSplit _elem214 = new CfSplit(); _elem214 = new CfSplit(); _elem214.Read(iprot); Success.Add(_elem214); } 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; 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.List) { { Success = new List<string>(); TList _list208 = iprot.ReadListBegin(); for( int _i209 = 0; _i209 < _list208.Count; ++_i209) { string _elem210 = null; _elem210 = iprot.ReadString(); Success.Add(_elem210); } 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; 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<string, string>(); TMap _map203 = iprot.ReadMapBegin(); for( int _i204 = 0; _i204 < _map203.Count; ++_i204) { string _key205; string _val206; _key205 = iprot.ReadString(); _val206 = iprot.ReadString(); Success[_key205] = _val206; } 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; 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); }
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) { bool isset_auth_request = 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) { Auth_request = new AuthenticationRequest(); Auth_request.Read(iprot); isset_auth_request = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_auth_request) 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) { 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; case 5: if (field.Type == TType.String) { 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.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[], List<ColumnOrSuperColumn>>(); TMap _map116 = iprot.ReadMapBegin(); for( int _i117 = 0; _i117 < _map116.Count; ++_i117) { byte[] _key118; List<ColumnOrSuperColumn> _val119; _key118 = iprot.ReadBinary(); { _val119 = new List<ColumnOrSuperColumn>(); TList _list120 = iprot.ReadListBegin(); for( int _i121 = 0; _i121 < _list120.Count; ++_i121) { ColumnOrSuperColumn _elem122 = new ColumnOrSuperColumn(); _elem122 = new ColumnOrSuperColumn(); _elem122.Read(iprot); _val119.Add(_elem122); } iprot.ReadListEnd(); } Success[_key118] = _val119; } 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.Struct) { Authnx = new AuthenticationException(); Authnx.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Authzx = new AuthorizationException(); Authzx.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.List) { { Success = new List<KsDef>(); TList _list191 = iprot.ReadListBegin(); for( int _i192 = 0; _i192 < _list191.Count; ++_i192) { KsDef _elem193 = new KsDef(); _elem193 = new KsDef(); _elem193.Read(iprot); Success.Add(_elem193); } 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; 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) { 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<ColumnOrSuperColumn>(); TList _list108 = iprot.ReadListBegin(); for( int _i109 = 0; _i109 < _list108.Count; ++_i109) { ColumnOrSuperColumn _elem110 = new ColumnOrSuperColumn(); _elem110 = new ColumnOrSuperColumn(); _elem110.Read(iprot); Success.Add(_elem110); } 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(); }