public void read()

in library/src/main/java/com/theguardian/bridget/thrift/Commercial.java [2305:2344]


      public void read(org.apache.thrift.protocol.TProtocol iprot, sendTargetingParams_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 1: // TARGETING_PARAMS
              if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
                {
                  org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin();
                  struct.targetingParams = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map26.size);
                  @org.apache.thrift.annotation.Nullable java.lang.String _key27;
                  @org.apache.thrift.annotation.Nullable java.lang.String _val28;
                  for (int _i29 = 0; _i29 < _map26.size; ++_i29)
                  {
                    _key27 = iprot.readString();
                    _val28 = iprot.readString();
                    struct.targetingParams.put(_key27, _val28);
                  }
                  iprot.readMapEnd();
                }
                struct.setTargetingParamsIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }